Mysql table is marked as crashed and last (automatic ?) Repai

Source: Internet
Author: User

Mysql table is marked as crashed and last (automatic ?) Repair failed solution 1. my colleague's server reported an error when backing up mysqldump. This is because the myisam table has too much data. At some point in time, the MyISAM table that stores data grows rapidly. for example, when the hard disk is full in some log tables. writing continues at this time. then the table will be locked; or the file tbl_name.MYI of the mysiam storage table will be damaged when you use phpmyadmin to open the database. the following fields in the MyISAM table are displayed in use.

Rows Type Collation Sizein use

 

When mysqldump is used for export, the error XXX table is marked as crashed and last (automatic?) is returned ?) Repair failed. 2. solution. find the folder in the mysql database. You can go to the mysql configuration file my. cnf (linux) my. find the datadir keyword in ini (windows), and find the corresponding database folder in the path. run the command in the database folder. <table_name> indicates the name of the table to be repaired,
# Myisamchk-r <table_name>

 

If this problem persists, stop mysql and
# Myisamchk-r-v-f <table_name>

 


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.