How to stop mysqld

前端 未结 18 930
清酒与你
清酒与你 2020-12-04 04:32

To find out the start command for mysqld (using a mac) I can do:

ps aux|grep mysql

I get the following output, which allows me to start mys

18条回答
  •  情书的邮戳
    2020-12-04 05:33

    Worked for me on mac

    a) Stop the process

    sudo launchctl list | grep -i mysql
    

    If the result shows anything like: "xxx.xxx.mysqlxxx"

    sudo launchctl remove xxx.xxx.mysqlxxx
    

    Example: sudo launchctl remove org.macports.mysql56-server

    b) Disable to autostart the process

    sudo launchctl unload -wF /Library/LaunchDaemons/xxx.xxx.mysqlxxx.plist
    

    Example: sudo launchctl unload -wF /Library/LaunchDaemons/org.macports.mysql56-server.plist

    • Finally reboot your mac

    Note: In some cases if you tried "a)" first, you need to reboot again before try b).

提交回复
热议问题