MySQL encountered a problem: can ' t creat/write to File "/var/mysql/xxxx. MYI "

Source: Internet
Author: User

This problem bothers me, there may be two reasons.

1, folder permissions are not enough, at least also to give the USERS group's readable writable permission;

2. The disk of the folder is full, the file is not written in;

If this is a problem that cannot be created or written, a large probability is the permissions of the file. There's not a whole bunch of explanations online.

Change method:

1 #chown-R mysql:mysql/usr/local/mysql/Changing the read and write permissions of the user group note the folder path here.

More than 2 should be able to solve the problem, if not resolved

In addition to the directory authorization, but also to modify the context of the directory security

Chcon-r-T Mysqld_db_t/home/myusqldata

MySQL encountered a problem: can ' t creat/write to File "/var/mysql/xxxx. MYI "

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.