Fixing MySQL Server When It Won’t Start with MAMP
For those of you that have installed and use MAMP for development. Sooner or later you are bound to run into an error with MySQL Server.
One day you’ll start up MAMP and the light next to MySQL Server will not turn green, signifying it is ready and online. You’re probably wondering “what is going on?”
Maybe you tried to restart MAMP, but to avail. This is usually due to the fact that there are conflicting instances of a process called “mysqld”. Fortunately there is an easy fix.
Open up the application “Activity Monitor”. It can be found in Applications->Utilities
Find the process called “mysqld” listed in the running processes.
Click on it once to highlight and then click the red stop sign in the upper left hand corner called “Kill Process”.
Open up a terminal
type “sudo killall -9 mysqld” (without the quotes)
That’s it. Now restart MAMP and everything should be good!
If you found this tutorial useful please give it a +1 and share it with your friends!