Stop MySQL on Mac OS X

May 27, 2011 | By Regaz.
  1. 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
  2. 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”

  3. 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)

    locate support-files/mysql.server

    Look at output, find, select and copy the path to mysql.server:

    sudo pat/To/mysql.server stop

QuickChic Theme • Powered by WordPress