MySQL in Linux can not REPAIR table repair tables Solution

Source: Internet
Author: User
Tags mysql in file permissions phpmyadmin

REPAIR table Syntax

REPAIR table ' table_name ' repair form

REPAIR table is used to repair damaged tables

Using in Linux

REPAIR TABLE ' table_name ' pre_forum_thread

Tips

Xt.pre_forum_thread Repair Error 1 when fixing table

Xt.pre_forum_thread repair Error Can ' t change ownership of the ' file '/usr/local/mys ...

Xt.pre_forum_thread Repair Status Operation failed

Solutions

CD Past:/var/lib/mysql/(mysql default installation path under Linux) ensure under MySQL file

Chown-r Mysql:mysql *

You can REPAIR TABLE in a tool like phpMyAdmin.


-------------------------------------

A previous system has been showing a table exception, phpMyAdmin fix also prompts "Can" t change ownership of the file '/xxx/xxx. MyD ' (errcode:1–operation not permitted). The problem was solved for the time being, but soon it was abnormal, so we started to try to solve the problem. The problem was found to be resolved due to an exception to the file permissions setting and the unification of its permissions and other files of the same directory. The specific methods are as follows:

Enter the directory where the file is located and execute the instruction:

Ls-l

It is generally inconsistent to see whether the file has the same permissions as the other files that are currently in place ~ ~


At this point, you will pass:

Chown-r User xxx. MyD

Chgrp-r user group XXX. MyD

chmod permission xxx. MyD

To modify the user rights and user groups in the file to match the other files in the directory. The code above, the Permissions section is similar to the 777 settings, specifically do not understand the words of Google to go.

After the modification is complete, the table can be repaired by phpMyAdmin.

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.