Mysql Table is read only error solution, mysqltable

Source: Internet
Author: User

Mysql Table is read only error solution, mysqltable

Today, I copied the database data to linux and run the program "Table is read only in mysql" to query the information.

Run the following command in linux:

# Mysqladmin-u root-p flush-tables

There is also a directory permission issue.

Due to the large amount of data, the export-> import process is slow. I directly compress the data, download the data, decompress the data, and change the user and group of the database directory to mysql considering the directory permission problem.

Code

Chown-R mysql: mysql (www.111cn.net)/usr/local/mysql/var

Write Permission

Chmod-R 0777/var/lib/mysql/taoniu2007/

Now, the problem is solved.

In windows

First, locate the location of mysqladmin, which is generally under mysql/bin, and then run the following command:

./Mysqladmin-u root-p flush-tables

Then, enter the password of the root account. It will be ready immediately. If there is no prompt, re-open drupal. Everything works.
From: http://www.111cn.net/database/mysql/66652.htm


Mysql, Table 'user' is read only. How can this problem be solved?

Modify permissions
GRANT privileges (columns) ON what TO user identified by "password" WITH GRANT OPTION

Privileges grants permissions to users. The following table lists the permission specifiers that can be used for GRANT statements:
Operation permitted by the permission specified character
Alter table and Index
Create Database and table Creation
Delete existing records in the table
Drop discard (delete) databases and tables
Create or discard an INDEX
Insert a new row into the table
REFERENCE unused
Select to retrieve records in a table
Update modify existing table records
FILE: reads or writes files on the server.
PROCESS: View information about the thread executed on the server or kill the thread.
RELOAD: RELOAD the authorization table or clear logs, host caches, or table caches.
SHUTDOWN the server
ALL; all privileges Synonyms

The system server2003 mysql cannot change the database table prompt 1036-table 'deston _ ad' is read only after logging on with the root user

This error occurs because the destoon_ad table can only be read but cannot be modified. Therefore, you must set this table to read and write modes.

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.