主从切换后无法对新主库进行写操作,即新主库是只读模式。
设置新主库,允许写操作。
1 2 3
show variables like 'read_only'; set global read_only=0; show variables like 'read_only';