Mysql startup error: MySQL server PID file cocould not be found, mysqlpid
After the cross-Permission database operation was completed yesterday, an ERROR was reported when the project was opened today. When the database was restarted, an ERROR was reported! MySQL server PID file cocould not be found !, The command line also reports "Can't connect to local MySQL server through socket"/var/lib/mysql. sock '(2). I found some information on the Internet, but they copied each other and did not solve the problem. Then I found out the problem and solved it myself. The following is my solution, so that the children's shoes who encountered the same problems can refer to and solve the problem.
First, check the process.
Ps aux | grep mysq *
If you see the red circle above, it means that the Mysql process is stuck, and you have to close all the stuck processes.
Killed 27664
Killed 28873
Killed 30041
Killed 30597
Restart mysql
Service mysql start
OK, solving the problem is that simple.
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.