2009
13
Oct

Make MAMP Start MySQL When It Doesn’t Want To

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:

  1. Quit MAMP
  2. Open Terminal (Applications/Utilities/Terminal.app)
  3. Type “killall -9 mysqld” (without the quotes)
  4. 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.

2 Responses to Make MAMP Start MySQL When It Doesn’t Want To

  1. Cynthia says:

    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???

  2. Cynthia says:

    Hey tried it for a second time and it connected to the database with no errors!!!!!!!!! Thanks!!!!!!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">