Mysql reports PID file cocould not be found! Solution

Source: Internet
Author: User

Today, I want to change the PATH environment variable compiled and installed on cetnos6 to the PATH environment variable. After several operations, I will fail to shut down or restart mysql. The prompt is as follows:


[Root @ web1 ~] # Service mysqld stop
MySQL server PID file cocould not be found! [FAILED]
Google, the solution is as follows:


Check the process:


[Root @ web1 ~] # Ps aux | grep mysq *
Mysql 16058 0.2 11.2 995540 112956? Sl mysqld
Root 17233 0.0 0.0 103316 848 pts/2 S + grep mysq *


If you see the above content, it means that the Mysql process is stuck, and you need to close these dead processes:


[Root @ web1 ~] # Kill-9 16058
[Root @ web1 ~] # Kill-9 17233
-Bash: kill: (17233)-No such process


Start Mysql again. You can restart Mysql several times and start Mysql successfully.

[Root @ web1 ~] # Service mysqld stop
MySQL server PID file cocould not be found! [FAILED]
[Root @ web1 ~] # Service mysqld restart
MySQL server PID file cocould not be found! [FAILED]
Starting MySQL... [OK]
[Root @ web1 ~] # Service mysqld restart
Shutting down MySQL. [OK]
Starting MySQL... [OK]
[Root @ web1 ~] #

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.