MySQL is Stopped After Restarting a Mac Server
Issue
You restarted your Mac server, and you've noticed that the MySQL service has stopped.
Cause
Mac servers do not automatically restart MySQL after being restarted.
Solution
You have two options for restarting MySQL.
Option 1
Open the apple menu in the top left corner of your screen, and select System Preferences.
In the System Preferences, click MySQL.
In the MySQL dialog box, click Start MySQL Server.
Option 2
Don't see an option for MySQL in the System Preferences? Copy the following text into the Command line:
sudo /usr/local/mysql/support-files/mysql.server start
Press Enter. MySQL will start.