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