首页 > 数据库技术 > 详细

mysql主从服务器

时间:2018-06-07 13:02:43      阅读:251      评论:0      收藏:0      [点我收藏+]

#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主从服务器

原文:https://www.cnblogs.com/weizaiyes/p/9149605.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!