Error exporting MySQL database: Got error:145:table ' wp_options ' is marked as crashed and should being repaired when using LOCK tables solution

Source: Internet
Author: User
Mysqldump:got error:145:table ' wp_options ' is marked as crashed and should being repaired when using LOCK TABLES

The error is as shown above.

Today in to their own WP site, when the export data found not to come out, reported as the error, in the Internet to find a bit of information, said that this Zhang is marked with problems, need to optimize. Reference:

Http://www.cnblogs.com/hakuci/archive/2012/03/20/2407723.html

Thanks to the information provided by Huang ' s blog, enter the MySQL bin directory and solve the problem successfully by following the command:

Myisamchk-c-R. /data/yourdatabasedir/wp_options. MYI

To export again:

Mysqldump-u root-p Air>air.sql

Under the current directory LS view, already has air.sql this file. Ok.

  

  

 

Error exporting MySQL database: Got error:145:table ' wp_options ' is marked as crashed and should being repaired when using LOCK tables solution

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.