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
感谢:http://stackoverflow.com/questions/5527676/warning-the-user-local-mysql-data-directory-is-not-owned-by-the-mysql-user

本文解决了在Snow Leopard系统中启动MySQL服务时遇到的警告问题,即数据目录未被MySQL用户拥有。通过使用三条简单的命令行操作,可以成功地更改目录的所有权并启动MySQL服务。
3878

被折叠的 条评论
为什么被折叠?



