mysql启动报can't create/write to file 'var/run/mysqld/mysqld.pid 错误解决办法

msql启动报错,启动不了。

进入mysql日志默认的路径为 /var/log/mysqld.log 查看日志,发现报错信息如下:

can't create/write to file 'var/run/mysqld/mysqld.pid

解决办法:

将 /var/run/mysqld/权限赋给mysql

执行以下命令即可:


chown -R mysql /var/run/mysqld
chgrp -R mysql /var/run/mysqld
————————————————
转自  https://blog.csdn.net/zhldt2008/article/details/54911714

posted @ 2023-06-12 13:39  猪脚踏浪  阅读(388)  评论(0编辑  收藏  举报