Processing of corrupted table or index files in mysql

Source: Internet
Author: User

If the table file or index file in mysql is corrupted, the error code 144,145 is displayed when you operate on the table. You can fix the error as follows:

(1) Use repair table table_name to modify the mysql command line;

(2) fix the problem in the program and execute repair table table_name to fix it. However, in this case, you need to pay attention to the issue. Do not execute SQL statements in the same connection as other SQL statements. Otherwise, other SQL statements may fail to be executed after the statement is executed.

You can re-open the connection before and after executing this statement (close_connection (); open_connection (); exec_ SQL (); close_connection (); open_connection. It is possible to re-open the connection after executing this statement, but this is not a test ).

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.