Coba:
/usr/local/mysql/bin/mysqladmin -u root -p shutdown
Atau:
sudo mysqld stop
Atau:
sudo /usr/local/mysql/bin/mysqld stop
Atau:
sudo mysql.server stop
Jika Anda menginstal Launchctl di OSX Anda dapat mencoba:
MacPorts
sudo launchctl unload -w /Library/LaunchDaemons/org.macports.mysql.plist
sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql.plist
Catatan:ini tetap ada setelah reboot.
Homebrew
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
Pemasang biner
sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop
sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
sudo /Library/StartupItems/MySQLCOM/MySQLCOM restart
Saya menemukannya di:https://stackoverflow.com/a/102094/58768