原文链接:https://zhuanlan.zhihu.com/p/444587888
从库用:set global read_only = 1; 解开:
set global read_only = 0;
主库为从库dump时用:flush tables with read lock; 解开:
unlock tables;
原文链接:https://zhuanlan.zhihu.com/p/444587888
从库用:set global read_only = 1; 解开:
set global read_only = 0;
主库为从库dump时用:flush tables with read lock; 解开:
unlock tables;