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

 

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

 

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

 

 

 

 

 

 

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