If you get the message “Error: Could not connect to MySQL server!” or if you have trouble starting up or restarting the MAMP Server with MySQL, you can try the following solution.

Steps

  • Quit MAMP
  • Open Terminal window
  • Type “killall -9 mysqld” and press enter
  • Start MAMP
  • Start servers