mysql主从切换

#########################

 

当主从切换时,旧主库设置为只读:set  global read_only = 1;那么会有那么几秒报错:报错如下:

 

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

 

 

 

 

 

 

########################

posted @ 2021-03-26 00:01  igoodful  阅读(263)  评论(0编辑  收藏  举报