重启linux机器后,mysql服务启动提示pid file更新问题
[root@VM-4-16-centos support-files]# ./mysql.server start
Starting MySQL.. ERROR! The server quit without updating PID file (/tmp/mysqld/mysqld.pid).
创建对应的文件目录 并授权 重新启动
[root@VM-4-16-centos support-files]# cd /tmp/
[root@VM-4-16-centos tmp]# mkdir mysqld
[root@VM-4-16-centos tmp]# cd mysqld/
[root@VM-4-16-centos mysqld]# touch mysqld.pid
[root@VM-4-16-centos mysqld]# cd ..
[root@VM-4-16-centos tmp]# chown -R mysql:mysql mysqld
[root@VM-4-16-centos tmp]# cd mysqld/
[root@VM-4-16-centos mysqld]# chmod 755 mysqld.pid
[root@VM-4-16-centos mysqld]# cd /usr/local/mysql/
[root@VM-4-16-centos mysql]# ./support-files/mysql.server start
Starting MySQL.. SUCCESS!
本文详细讲述了如何在Linux重启后MySQL服务启动时遇到PIDfile未更新的问题,通过创建文件、权限设置和正确启动流程来修复这一问题,确保MySQL服务正常运行。
1003

被折叠的 条评论
为什么被折叠?



