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

 

文章来源:刘俊涛的博客

欢迎关注,有问题一起学习欢迎留言、评论

 

每一个你不满意的现在,都有一个你没有努力的曾经。

原文地址:https://www.cnblogs.com/lovebing/p/10656140.html