我试图运行mysql安装通过自制的mac(高塞拉利昂),但我总是有这些问题的权限和pid文件。我在网上找到了数百种可能的解决方案,但我无法解决这些问题:
Haline:/ Haline$ mysql.server start
Starting MySQL
./usr/local/Cellar/mysql/8.0.12/bin/mysqld_safe: line 144: /usr/local/var/mysql/Haline.local.err: Permission denied
/usr/local/Cellar/mysql/8.0.12/bin/mysqld_safe: line 144: /usr/local/var/mysql/Haline.local.err: Permission denied
/usr/local/Cellar/mysql/8.0.12/bin/mysqld_safe: line 199: /usr/local/var/mysql/Haline.local.err: Permission denied
/usr/local/Cellar/mysql/8.0.12/bin/mysqld_safe: line 144: /usr/local/var/mysql/Haline.local.err: Permission denied
ERROR! The server quit without updating PID file (/usr/local/var/mysql/Haline.local.pid).
有人能帮我吗?
1条答案
按热度按时间tgabmvqs1#
根据自制的官方故障排除页面:
如果命令因权限错误而失败,请检查/usr/local子目录的权限。如果你不确定该做什么,你可以跑
cd /usr/local && sudo chown -R $(whoami) bin etc include lib sbin share var opt Cellar Caskroom Frameworks
.或者,如果尚未在中安装应用程序
/usr/local
依赖于特定权限,您还可以运行: