重启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!