MySQL報錯解決:The MySQL server is running with the --read-only option so it cannot execute this statement


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM