
本文共 1260 字,大约阅读时间需要 4 分钟。
���MySQL������������������������������������������������������������������������������������Master-slave���������������������������������������������������������������������������
���MySQL���������������������Master������������������������������������������������������
mysql> show global variables like "%read_only%";
- ���������������������������������
- ���������������
- ������read_only���������0���
-
������Master���������������������
mysql> set global read_only=1;mysql> flush tables with read lock;
-
������Slave������������������������������������������
mysql> set global read_only=1;
���������������������������������_deinit���
mysql> flush tables with read lock;
���������������������������������������������������������������������������
mysql> unlock tables;
mysql> set global read_only=0;
������Slave���������������������������������������������������������������������read_only=1���������������������������������������Super������������������������������������������������read_only=1���Slave������������������Master���������������
data���������������������������������������
������������������read_only���������������flush tables with read lock���������������������������������������������������������������������������������
发表评论
最新留言
关于作者
