MAMP : Mysql won't turn on

前端 未结 11 1580
暗喜
暗喜 2020-12-16 00:53

My mamp mysql server won\'t turn on. I tried executing /Applications/MAMP/bin/startMysql.sh but that gave me this error :

101110 05:50:31 mysqld_safe

相关标签:
11条回答
  • 2020-12-16 01:30

    This command worked for me.

         ps aux | grep mysql 
         lsof -i 
         killall -9 mysqld
    

    if needed

        sudo killall -9 mysqld
    

    Ref: http://www.witheringtree.com/2010/05/how-to-resolve-mysql-not-starting-in-mamp/

    0 讨论(0)
  • 2020-12-16 01:32

    Jmeyer, on occasion MAMP will do strange things like refuse to restart. When this happens, go to the MAMP application and click "preferences" and then just click "Ok."

    For some reason this forces a restart of the MAMP server.

    Not sure if that's what you were looking for, but a helpful tip nonetheless.

    0 讨论(0)
  • 2020-12-16 01:33

    There are multiple ways to fix this - usually one works.

    To start off, try quitting MAMP and then:

    sudo killall -9 mysqld
    

    If that fails, try going to Preferences > Ports and changing to MAMP default. Click ‘OK’. MySQL should then start. If your website doesn’t show up at localhost, try changing the ports back.

    You can also stop MAMP, go to System Preferences > MySQL and turn off MySQL and then restart MAMP.

    Hope this helps!

    0 讨论(0)
  • 2020-12-16 01:36

    Well I'm glad for you it fixed itself on its own ;)

    From the look of your error file, it looks like you already had an instance of MySQL running... Not sure if this works on a mac, but you could try :

    pidof mysqld
    

    If this outputs something (one or several numbers), then MySQL is running. If the output is empty, then it is not.

    0 讨论(0)
  • 2020-12-16 01:41

    This is what did it for me, in terminal:

    sudo chown -R mysql:mysql /usr/local/mysql

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