Troubleshoot MySQL Manager or server PID file could not being found! The method

Source: Internet
Author: User

[[Email protected] var]# service mysqld stop

MySQL Manager or server PID file could not being found! [FAILED]

Workaround:

First look at the process

[[Email protected] mysql]# PS aux |grep mysq*

Root 2643 0.0 0.2 4536 1224? S 01:09 0:00/bin/sh/usr/local/mysql/bin/mysqld_safe--datadir=/usr/local/mysql/var--pid-file=/usr/local/mysql/var /centos.pid

MySQL 2757 0.0 1.2 36976 6608? Sl 01:09 0:00/usr/local/mysql/libexec/mysqld--basedir=/usr/local/mysql--datadir=/usr/local/mysql/var--user=mysql --log-error=/usr/local/mysql/var/centos.err--pid-file=/usr/local/mysql/var/centos.pid--socket=/tmp/mysql.sock- -port=3306

Root 4788 0.0 0.1 3920 684 pts/2 r+ 11:11 0:00 grep mysq*

If you see the above, it means that the MySQL process is dead, and then it's time to shut down all the dead processes.

[[email protected] mysql]# kill 2643

[[email protected] mysql]# kill 2757

It's OK to start MySQL.

[[Email protected] mysql]# service mysqld start

Starting MySQL.


This article is from the "Mr. Chancellor's Blog" blog, please be sure to keep this source http://chaohuang.blog.51cto.com/6843018/1895386

Troubleshoot MySQL Manager or server PID file could not being found! The method

Related Article

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.