Essayez:
/usr/local/mysql/bin/mysqladmin -u root -p shutdown
Ou:
sudo mysqld stop
Ou:
sudo /usr/local/mysql/bin/mysqld stop
Ou:
sudo mysql.server stop
Si vous installez le Launchctl dans OSX , vous pouvez essayer:
MacPorts
sudo launchctl unload -w /Library/LaunchDaemons/org.macports.mysql.plist
sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql.plist
Remarque: il est persistant après le redémarrage.
Homebrew
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
Installateur binaire
sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop
sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
sudo /Library/StartupItems/MySQLCOM/MySQLCOM restart
J'ai trouvé que: http://stackoverflow.com/posts/102094/edit