Summary of the solution to the table is read only in MySQL

Source: Internet
Author: User
Tags flush drupal

If you are using a database that suddenly appears to be a class problem

Under Linux to execute the following command on it, of course you have to find your MySQL directory

In Linux

The code is as follows Copy Code

/usr/local/mysql/bin/mysqladmin-u root-p Flush-tables

In Windows

Can execute lush-tables in cmd

can also be modified in phpMyAdmin direct use of the repair table


If you are importing restore data

, so the database folder under all the table files chmod into 777,chown into "_mysql", but this problem is more serious, drupal inside the reality table crached. No way, immediately Google, found that the solution is quite easy.

First, find the location of the mysqladmin, usually under Mysql/bin, and then run the command:

The code is as follows Copy Code

./mysqladmin-u Root-p Flush-tables

Then enter the password of the root account, immediately, without any hint, re-open Drupal, everything is OK.

Through this, also found the correct permissions of the database file settings: Data under the database Folder 700, table file 660, all files should be owned by MySQL.

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.