Start MySQL Error--error! The server quit without updating PID file

Source: Internet
Author: User

Development said that a test environment of MySQL, unable to restart, reported the following error message:

# service mysqld restartshutting down MySQL. success! Starting MySQL. error! The server quit without updating PID file (/usr/local/mysql/data/test.pid). # ps-ef|grep mysql|grep-v Grepavahi      697
   1  0 Sep16?        00:00:02 avahi-daemon:running [test.local]# service mysqld startstarting MySQL. error! The server quit without updating PID file (/usr/local/mysql/data/test.pid).

 

Looked at the error log, actually did not have any hint. Ask him what he did before restarting the operation did not, replied that just opened the binary, and then try to restart the error.

Looking at the my.cnf file, it does add a parameter:

Log_bin=binlog

  

However, if Server-id is not set, a Server-id is set in the configuration file:

Server-id=1

  

Restart success!

The cause of the error can be seen in the Official Document Setup Log-bin section:

If you specify this option without also specifying a--server-id, the server was not allowed to start. (Bug #11763963, bug #56739)

  

Start MySQL Error--error! The server quit without updating PID file

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.