I am using MAMP for local PHP development. It’s alright. It has a tendency to not want to cooperate sometimes. Like this morning. I loaded up MAMP and Apache started just fine but MySQL didn’t want to do anything.
If you are getting an error similar to “Error: Could not connect to MySQL server!”, rather than having to reinstall MAMP (which sometimes doesn’t work), here’s a fix:
- Quit MAMP
- Open Terminal (Applications/Utilities/Terminal.app)
- Type “killall -9 mysqld” (without the quotes)
- Start MAMP
It should be working now. If not, you may have to sudo the command (“sudo killall -9 mysqld”)
Another option is to go to Appliacations/MAMP/db/mysql/ and delete anything is is NOT a folder. I didn’t have to use this option so I can’t vouch for it myself. According to forum postings it works though.

Thanks it does work. Now i have to figure out how to fix the Database Error: Unable to connect to the Database: Could not connect to MySQL. Any ideas???
Hey tried it for a second time and it connected to the database with no errors!!!!!!!!! Thanks!!!!!!!!