mysql error occurs Table is read only solution

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 database server environment,
the database started a user group: mysql
database launching user: mysql
database data directory: / home / data / mysql
Solution:
chown -R mysql.mysql / Home / data / MySQL
chmod -R 755 / Home / data / MySQL
# # mysqladmin command to find the path ##
the find / -name mysqladmin
## ## default port 3306
/ usr / local / MySQL / bin / mysqladmin -u root -p-flush the Tables
## non-default port 3306, such as 3307 ##
/ usr / local / mysql / bin / mysqladmin -u root -p -P3307 flush-tables

Ali cloud Cloud 2020 purchase subsidies 100 million
computer rental hang idle resources to earn money electricity
use of idle computer resources to earn pocket money (for students, housewives)
generated outside the chain tool (International Edition) Online
Online generated outside the chain tool (Chinese version)

Published 16 original articles · won praise 2 · Views 409

Guess you like

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