mysql主从服务器

Posted WWSASUKE

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql主从服务器相关的知识,希望对你有一定的参考价值。

#mysql主从服务器

mysql-bin.003673 | 106

查看错误日志
show variables like ‘%log_error%‘;

replicate-do-table=testmysql

change master to master_host=‘182.61.28.4‘,master_user=‘mysync‘,
master_password=‘123456‘,master_log_file=‘mysql-bin.003673‘,master_log_pos=511;
Slave I/O: Fatal error: The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or the --replicate-same-server-id option must be used on slave but this does not always make sense; please check the manual before using it). Error_code: 1593
180607 10:04:08 [Note] Slave I/O thread exiting, read up to log ‘mysql-bin.003673‘, position 511





以上是关于mysql主从服务器的主要内容,如果未能解决你的问题,请参考以下文章

mysql怎么实现主从复制

MySQL主从介绍,配置主服务器,配置从服务器,实现主从同步

MySQL 运维 主从复制 -- 主从复制概述主从复制原理搭建MySQL主从复制

mysql主从复制

Mysql主从复制

Mysql主从同步(复制)