MySQL報錯:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement等問題
1.登錄的mysql:mysql –u root –p
mysql> set global read_only=0;
(關掉新主庫的只讀屬性)
flush privileges;
2.修改mysql配置文件my.cnf,該文件在/etc目錄下


重啟mysql服務:service mysqld restart
