码迷,mamicode.com
首页 > 数据库 > 详细

mysql主从服务器

时间:2018-06-07 14:29:54      阅读:227      评论:0      收藏:0      [点我收藏+]

标签:ror   host   using   ase   code   top   服务器   his   cat   

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

标签:ror   host   using   ase   code   top   服务器   his   cat   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!