- Before all look in /Library/LaunchDaemons/to find the mysql daemon:
ls /Library/LaunchDaemons/| grep mysql
If you got some output you should select and copy the .plist MySQL daemon’s name.
Now you Should Shutdown MySQL with the following command:
sudo launchctl unload -w /Library/LaunchDaemons/MySQLDaemon.plist
- If you didn’t got any output by the first command, try with this solution:
sudo mysqladmin -uroot -p shutdown
After you need to ascertains than you effectively killed your mysql.
mysql -uroot -p
You should find in output: “Can’t connect”
- If also mysqladmin didn’t give you any result try with the following procedure:
(If your updatedb isn’t updated $ sudo /usr/libexec/locate.updatedb)
Look at output, find, select and copy the path to mysql.server:
sudo pat/To/mysql.server stop
Tags: Mac Os X