一次mysql启动不了的错误 No such file or directory DbMysql.class.php LINE: 58 - 云起网

云起网

您现在的位置是:首页> 数据库相关 -> 一次mysql启动不了的错误 No such file or directory DbMysql.class.php LINE: 58

Article

一次mysql启动不了的错误 No such file or directory DbMysql.class.php LINE: 58

云起网2018-12-17 数据库相关421
站点打开失败,提示No such file or directory DbMysql.class.php LINE: 58

20181217222619-626513.png

一看错误,怀疑是数据库的问题,检查修改了网站的配置文件,刷新站点还是这个错误。

于是重启MySQL,提示 MySQL server PID file could not be found!

好奇怪啊,没遇到这个问题啊!立马网上搜索,要清理.../mysql/var下面的my.bin.0000xx类似的文件,重启mysql问题依旧。


后来在/etc/my.cnf中指定了mysql的报错日志 error.log,还得赋给这个路径权限。

chown -R mysql:mysql  /var/log/mysql

chmod -R 755 /var/log/mysql

这样mysql启动报错可以看到日志了,原来是端口被占用了。kill掉占用的进程id,重启mysqld就好了。


参考

https://blog.csdn.net/u010098331/article/details/50752667/

https://blog.csdn.net/wang_zhenwei/article/details/48573761

文章评论

共有0条评论来说两句吧...