If you can't start mysql service in snow leopard, and in the panel prefs appears 'warning the user/local/mysql/data directory is not owned by the mysql user', you have to:


sudo chown -RL root:mysql /usr/local/mysql  
sudo chown -RL mysql:mysql /usr/local/mysql/data  
sudo /usr/local/mysql/support-files/mysql.server start


出现如标题问题,可以执行以上三句命令行。

即可成开启mysql




注意:本文归作者所有,未经作者允许,不得转载
2017,颜值新招数