Open a terminal:
-
Check MySQL system pref panel, if it says something along the line “Warning, /usr/local/mysql/data is not owned by ‘mysql’ or ‘_mysql’
-
If yes, go to the mysql folder cd /usr/local/mysql
-
do a sudo chown -R _mysql data/
-
This will change ownership of the /usr/local/mysql/data and all of its content to own by user ‘_mysql’
-
Check MySQL system pref panel, it should be saying it’s running now, auto-magically. If not start again.
-
Another way to confirm is to do a
netstat -na | grep 3306
It should say:
tcp46 0 0 *.3306 *.* LISTEN
To see the process owner and process id of the mysqld:
ps aux | grep mysql