Table is read only in the MySql solutions Summary

When you migrate physical corresponding instance file mysql database data directory, authorized account, suggesting that "mysql error in Table is read only" operation update statement.

The target database server environment
database start a user group: mysql
database launching user: mysql
database data directory: / home / data / mysql

Solution:
chown -R mysql.mysql / Home / the Data / MySQL
chmod -R 755 / Home / the Data / MySQL
## to find the mysqladmin command path ##
the Find / -name mysqladmin
## ## default port 3306
/ usr / local / MySQL / bin / mysqladmin -u the root -p the flush-Tables
## non-default port 3306, such as ## 3307
/ usr / local / MySQL / bin / mysqladmin -u the root -p--P3307 the flush Tables

Computer rental hang idle resources to earn money electricity
use of idle computer resources to earn pocket money (for students, housewives)
Online generated outside the chain tool (International Edition)
generated on-line outside the chain tool (Chinese version)

Published 16 original articles · won praise 2 · Views 398

Guess you like

Origin blog.csdn.net/momoringmok/article/details/104976924