Starting MySQL... ERROR The server quit without updating PID file (/usr/local/mysql/localhost.local
现象安装mysql时候,执行命令 /usr/local/mysql/support-files/mysql.server start,启动mysql报错如下:[root@localhost local]# /usr/local/mysql/support-files/mysql.server startStarting MySQL... ERROR! The server quit without
·
现象
安装mysql时候,执行命令 /usr/local/mysql/support-files/mysql.server start,启动mysql报错如下:
[root@localhost local]# /usr/local/mysql/support-files/mysql.server start
Starting MySQL... ERROR! The server quit without updating PID file (/usr/local/mysql/localhost.localdomain.pid).
原因
是因为没有权限造成的原因,检查 /etc/my.cnf权限,检查 /usr/local/mysql文件夹权限
解决方式
1.修改 /etc/my.cnf 的权限为777
chmod 777 /etc/my.cnf
2.再次启动mysql,就成功了
/usr/local/mysql/support-files/mysql.server start
更多推荐
已为社区贡献8条内容
所有评论(0)