The mysql pid file cannot be started after it is deleted. How can this problem be solved?

Source: Internet
Author: User

The mysql pid file cannot be started after it is deleted. How can this problem be solved?

Tip: "Starting MySQL ...... ERROR! Manager of pid-file quit without updating file "solution.

After you delete the mysql binary log file and restart mysql, this error occurs because the disk space is small and those binary files occupy a lot of space. So you need to delete it. The solution was to enter the mysql var directory cd

/Usr/local/mysql/var/, and then vi

Mysql-bin.index, just remove the binary log file you deleted. If the problem persists, view the *. err file in the var directory for further judgment.

How to disable mysql binary files:

Vi/etc/my. cnf

Log-bin = mysql-bin

Binlog_format = mixed

Comment out the two lines and restart them.

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.