Mysql Table is readonly Solution

Source: Internet
Author: User


Mysql Table is readonly solution today, copy the Table of the next mysql Data to another folder. When the result is accessed, the error "Table is readonly" is returned. My host is centos5, Because I encountered many permission problems before. When this prompt is displayed, the first response is that the permission settings of the data table are not affected. After you grant the write permission to an error table file, an error occurs. After google finds that it still needs to be flushed. Use the mysqladmin-u <username>-p flush-tables command to flush all readonly tables. The specific steps to solve mysql table is readonly at www.2cto.com are: add the writable permission to the mysql database directory, that is, execute refresh mysqladmin-u <username>-p flush-tables in the Bin directory from mysql 777 to. In addition, the mysql permission table is changed, you can restart the mysql server mysqladmin-u <username>-p reload. In order to avoid this problem, the mysql Table is readonly (mysql DATA Table read-only) make a summary of the solution to this problem. If you encounter a prompt such as mysql table is readonly (data table read-only), check the cause of the problem from the following five perspectives: 1. Check whether the read-only table file permissions are properly configured. 2. Check whether the read-only table is locked. 3. Check whether the database user has independent access control on the read-only tables of the database. 4. use MySQL optimization or repair operations to repair read-only data tables (I use sqlyog) 5. check whether your read-only table is of the InnoDB type. This type of table cannot be copied. Author's journey

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.