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 sous 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 :cela persiste après le redémarrage.
Infusion maison
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é cela dans :https://stackoverflow.com/a/102094/58768