警告 user/local/mysql/data 目录不属于 mysql 用户
我无法在 Snow Leopard 中启动 mysql 服务,并且在面板首选项中出现以下消息:
警告user/local/mysql/data目录不属于mysql用户
我该如何解决这个问题?
I can't start the mysql service in Snow Leopard, and in the panel prefs appears the message,
warning the user/local/mysql/data directory is not owned by the mysql user
How can I fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果在雪豹中无法启动 mysql 服务,并且在面板首选项中出现“警告 user/local/mysql/data 目录不属于 mysql 用户”,则必须:
sudo chown -RL mysql:mysql /usr/local/mysql/data
sudo /usr/local/mysql/support-files/mysql .服务器启动
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
这对我来说是在 El Capitan & 工作的。 塞拉
就是这样。
更新:修复自动启动
我发现如果您也修复自动启动,它会更有用:
并粘贴:
保存它,然后:
然后它将在重新启动时加载。
参考:https://coolestguidesontheplanet.com/get-apache-mysql -php-phpmyadmin-working-osx-10-10-yosemite/
This work for me in El Capitan & Sierra
That's it.
Update: to fix auto start
I found it more useful if you fix Auto Starting too:
And paste in:
Save it and then:
Then it will load on a restart.
Reference: https://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-10-yosemite/