Start mysql after restarting the linux system ERROR! The server quit without updating PID file /var/run/mysqld/mysqld.pid

First describe the problem encountered

After restarting the linux system, mysql needs to be started manually, 

Execute the command: service mysqld start

After execution, an error is reported: Starting MySQL. ERROR! The server quit without updating PID file (/var/run/mysqld/mysqld.pid).

solution:

Create the mysqld.pid file in the /var/run/mysqld/ directory

1.cd /var/run/mysqld/

2.touch mysqld.pid

3.chmod -R 777 /var/run/mysqld/ (Give read, write and executable permissions to the mysqld folder and the following subfiles or folders)

4.service mysqld start

success after execution

Starting MySQL. SUCCESS! 

 

 

Guess you like

Origin blog.csdn.net/qq_19484963/article/details/88859653