Solve the Problem of mysql downtime

Source: Internet
Author: User
Tags mysql backup


The possible cause of mysql downtime is the excessive amount of data. The mysql command can be identified but cannot be executed after it is entered. You need to: www.2cto.com 1, stop mysql2, in/etc/my. add innodb_force_recovery = 6 (as shown below) to the cnf file. InnoDB forcibly restores [mysqld] innodb_force_recovery = 4 (1-6) 1. innodb_force_recovery = 1. Even if the page is damaged, the server continues to run. This option is particularly useful for backing up or transferring the current data.
2. innodb_force_recovery = 2. Stop the master thread from running. If the master thread is cleared, the server will be suspended. 3. innodb_force_recovery = 3. Do not roll back the transaction after recovery. 4. innodb_force_recovery = 4. If the merge operation is inserted into the buffer zone, the system will crash and 5 innodb_force_recovery = 5 will not be executed. when starting the database, ignore UNDO log 6. innodb_force_recovery = 6. When you start the database, ignore rollback logs related to recovery 3, connect to mysql backup-related database 4, drop the backup database www.2cto.com 5, and recreate the database 6, remove innodb_force_recovery = 67, import the backup database, and solve the problem.

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.