Unable to stop MySQL on OS X 10.10

前端 未结 9 1512
忘掉有多难
忘掉有多难 2021-02-01 09:23

I\'m starting to go nuts over this. I setup MySQL/Apache/PHP using the tutorial by Coolest Guides On The Planet. I\'m guessing something went wrong as its not working as expec

相关标签:
9条回答
  • 2021-02-01 09:31

    This is what worked for me. It was listed under a different plist name:

    sudo launchctl unload -w com.oracle.oss.mysql.mysqld.plist
    
    0 讨论(0)
  • 2021-02-01 09:36

    Try with issuing the following command in command line:

    ps -xo pid,ppid,stat,command | grep mysqld
    

    It will show you your processes, with their parent ID in the second column. Look for the mysqld and it's parent process. After locating it, issue a:

    sudo kill pid
    

    where pid is mysqld's parent process ID.

    EDIT If you want to stop the process from launching again, try:

    sudo launchctl unload  /System/Library/LaunchDaemons/mysqld.plist
    
    0 讨论(0)
  • 2021-02-01 09:37

    I also got the same problem, unable to stop MySql Sever through system preferences on macOS High Sierra.

    I did brew uninstall mysql on my terminal window.

    now I am able stop stop MySql Sever through system preferences.

    Since mysql was installed on my mac 2 ways binary as well as home brew.

    0 讨论(0)
  • 2021-02-01 09:40

    in terminal

    kill `pgrep mysqld`
    

    this kills the mysqld process.

    0 讨论(0)
  • 2021-02-01 09:40

    I've installed mysql via homebrew, but stop mysql by using mysql stop command, mysql restart right now. try to execute command as follow if your mysql was installed via homebrew

    brew services stop $(brew list | grep mysql)
    
    0 讨论(0)
  • 2021-02-01 09:43

    For Mac Users kill -9 {pid} kept restarting the process. This was because I had MySQL Server running. On OSX I had to:

    1- System Preferences.

    2- Search for mysql.

    3- Press the Stop MySQL Server button.

    got it from a github issue, and it solved my problem

    https://github.com/docker/compose/issues/4950#issuecomment-407145733

    0 讨论(0)
提交回复
热议问题