Manually replacing MySQL database files causes MySQL to fail to start

Source: Internet
Author: User

The server quit without updating PID file (/usr/local/mysql/data/mysql.pid

This error almost swept all MySQL startup error;

Check the SQL error log

Innodb:to Fix the problem and start mysqld:
INNODB:1) If There is a permission problem in the file and mysqld cannot
Innodb:open the file, you should modify the permissions.
INNODB:2) If The table is not needed, or can be restore it from a backup,
Innodb:then you can remove the. ibd file, and InnoDB would do a normal
Innodb:crash recovery and ignore that table.
Innodb:3) If the file system or the disk is broken, and you cannot remove
Innodb:the. ibd file, can set innodb_force_recovery > 0 in MY.CNF
Innodb:and force InnoDB to continue crash recovery here.
160721 12:14:43 mysqld_safe mysqld from PID File/usr/local/mysql/data/mysql.pid ended

First InnoDB;

The person

If The table is not needed, or can be restore it from a backup,
Then you can remove the. ibd file, and InnoDB would do a normal
Crash recovery and ignore that table.

Because I used a InnoDB table engine database to overwrite another useless database file;

RM-RF the wrong table

Manually replacing MySQL database files causes MySQL to fail to start

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.