Försök:
/usr/local/mysql/bin/mysqladmin -u root -p shutdown
Eller:
sudo mysqld stop
Eller:
sudo /usr/local/mysql/bin/mysqld stop
Eller:
sudo mysql.server stop
Om du installerar Launchctl i OSX du kan prova:
MacPorts
sudo launchctl unload -w /Library/LaunchDaemons/org.macports.mysql.plist
sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql.plist
Obs:detta är beständigt efter omstart.
Hembryggt
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
Binärt installationsprogram
sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop
sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
sudo /Library/StartupItems/MySQLCOM/MySQLCOM restart
Jag hittade det i:https://stackoverflow.com/a/102094/58768