Tableisreadonly solution for mysql _ MySQL

Source: Internet
Author: User
Mysql Tableisreadonly solution Readonly

BitsCN.com
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 mysqladmin-u After the-p flush-tables command successfully flush all readonly tables, the problem is solved. The specific steps to solve mysql table is readonly are: Add write permission to the mysql database Directory, that is, execute refresh mysqladmin-u from 777 to the mysql Bin directory. -P flush-tables: you can restart the mysql server mysqladmin-u after changing the mysql permission table. -P reload: in order to avoid the problem of this kind of problem, we will summarize the solution to the problem of mysql Table is readonly (mysql data Table read-only. 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 path: bitsCN.com

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.