将从库替换为主库

将从库替换为主库

1停止主从:stop slave;

2重置所有:reset slave all;

3让业务直接连接到这个库即可

posted @ 2021-02-25 11:56  linuxTang  阅读(109)  评论(0)    收藏  举报