Home  >  Article  >  Database  >  mysql 主备切换 主从互换

mysql 主备切换 主从互换

WBOY
WBOYOriginal
2016-06-06 09:35:461868browse

mysql

如题,我有两个数据库
主库 A 192.168.30.128
备库 B 192.168.28.129
现在的情况是我把两台数据库用主从复制模式,主库开启binlog,备库通过主库binlog重演主库,生产主库备份。主库master 备库slave ,备库作为了只读数据库,现在主库挂了,有何办法能使主库失效,应用直接启动备库

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn