Recently I was working on a website using an eCommerce platform, which requires a database. In a situation like that, where I’ll need PHP and MySQL, I prefer to use MAMP for its simplicity. It’s a great application for the Mac that enables you to setup a local server environment in a matter of seconds. Yet, I came across a rather bothersome problem the other day when I opened up MAMP and noticed a red circle for the “MySQL Server” status, which prohibited me from being able to work on the website. Fortunately, with Activity Monitor or Terminal, there are two very quick solutions to this problem.
Using Terminal
- First, if MAMP is currently open, go ahead and quit it.
- Open up Terminal from the Utilities folder within Applications.
- In the command line, type in
"sudo killall mysqld"
. - Type in your admin password when asked.
- If you open MAMP, you should now see two green statuses.
Using Activity Monitor
- First, if MAMP is currently open, go ahead and quit it.
- Open up Activity Monitor from the Utilities folder in Applications.
- Look for “mysqld” under the list of processes currently running.
- Select it, and click on the red “Quit Process” button in the top left corner.
- Choose “Force Quit” when the drop-down window appears.
- Now, when you open MAMP, there will be a green status next to MySQL Server.