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

港控/mmm° 2022-03-21 14:46 287阅读 0赞

是因为有人锁库了,设置为只读模式,所以才会出现上述问题

解决办法:

mysql> set global read_only=0;
(关掉新主库的只读属性)

flush privileges;

mysql>set global read_only=1;

(开启新主库的只读属性)

flush privileges;

发表评论

表情:
评论列表 (有 0 条评论,287人围观)

还没有评论,来说两句吧...

相关阅读