Incorrect key file for table '/tmp/#sql_882_0. MYI '; Try to repair it

Source: Internet
Author: User

The method of repairing the table is as follows:

One law:. Check table and Repair table methods
1. Go to MySQL's DOS console and enter the password

2,use database; (Name of your databases)

3, check table tabtest;
If the result says status is OK, then do not repair, if there is error, you can use:

> Repair table tabtest;

Another likely cause is a lack of temporary folder space, which may occur when large data join,order by, and the temporary folder path needs to be modified

To add the Tmpdir parameter to the start command:

/usr/bin/mysqld_safe--defaults-file=/etc/my.cnf--pid-file= "$mypidfile"--log-error= "$errlogfile"--tmpdir=/var/ Tmp

Incorrect key file for table '/tmp/#sql_882_0. MYI '; Try to repair it

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.