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
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/
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.
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!
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.
This is what did it for me, in terminal:
sudo chown -R mysql:mysql /usr/local/mysql