Prøv:
/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
Hvis du installerer Launchctl i OSX du kan prøve:
MacPorts
sudo launchctl unload -w /Library/LaunchDaemons/org.macports.mysql.plist
sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql.plist
Bemærk:dette er vedvarende efter genstart.
Hjemmebryg
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
Jeg fandt det i:https://stackoverflow.com/a/102094/58768