主从同步维护

在主库上:flush tables with read lock;

show master status;

在从库尚执行

select master_pos_wait(日志名称,日志位置);

在主库上执行unlock tables

 

posted on 2014-08-21 18:09  zitong  阅读(134)  评论(0)    收藏  举报