我已经在MacO上下载并安装了MySql社区版本。我尝试使用命令mysql.server start
运行它,但它返回以下错误。
Jeets-MacBook-Pro:~ jeetpatel$ mysql.server start
Starting MySQL
./usr/local/mysql/bin/mysqld_safe: line 647: /usr/local/mysql/data/Jeets-MacBook-Pro.local.err: Permission denied
Logging to '/usr/local/mysql/data/Jeets-MacBook-Pro.local.err'.
/usr/local/mysql/bin/mysqld_safe: line 144: /usr/local/mysql/data/Jeets-MacBook-Pro.local.err: Permission denied
/usr/local/mysql/bin/mysqld_safe: line 198: /usr/local/mysql/data/Jeets-MacBook-Pro.local.err: Permission denied
/usr/local/mysql/bin/mysqld_safe: line 906: /usr/local/mysql/data/Jeets-MacBook-Pro.local.err: Permission denied
rm: /usr/local/mysql/data/Jeets-MacBook-Pro.local.pid.shutdown: Permission denied
/usr/local/mysql/bin/mysqld_safe: line 144: /usr/local/mysql/data/Jeets-MacBook-Pro.local.err: Permission denied
ERROR! The server quit without updating PID file (/usr/local/mysql/data/Jeets-MacBook-Pro.local.pid).
我试图识别PID并将其杀死。
ps -aux | grep -i mysql
kill -9 PID
另外,检查mysql数据目录的所有权并进行更改。
ll -aF /var/lib/mysql/
chown -R mysql /var/lib/mysql/
但是没有任何结果。它仍然显示相同的错误。
我想在我的终端上以读取,写入,更新和删除权限启动mysql。我应该能够将其与Django应用程序连接。