1209 -The MySQL server is running with the --read-only option


 

1209 - The MySQL server is running with the --read-only option so it cannot execute this statement

 

一般這個錯誤有兩種原因:

1.連到從庫了。從庫一般設置為只讀。

2.主庫的read_only參數被修改為1

 

解決辦法:set global read_only=0;

https://blog.csdn.net/lwei_998/article/details/50445830

https://stackoverflow.com/questions/35445190/strange-mysql-read-only-error

 

文章來源:劉俊濤的博客

歡迎關注,有問題一起學習歡迎留言、評論

 

每一個你不滿意的現在,都有一個你沒有努力的曾經。


免責聲明!

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



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