प्रयत्न:
/usr/local/mysql/bin/mysqladmin -u root -p shutdown
या:
sudo mysqld stop
या:
sudo /usr/local/mysql/bin/mysqld stop
या:
sudo mysql.server stop
यदि आप OSct में OSctl स्थापित करते हैं तो आप कोशिश कर सकते हैं:
MacPorts
sudo launchctl unload -w /Library/LaunchDaemons/org.macports.mysql.plist
sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql.plist
नोट: यह रिबूट के बाद लगातार है।
होमब्रू
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
बाइनरी इंस्टॉलर
sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop
sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
sudo /Library/StartupItems/MySQLCOM/MySQLCOM restart
मैंने पाया कि: https://stackoverflow.com/a/102094/58768