mysql主从同步,从库会隔几分钟或更长时间重启一次,直至停止 50

error-log如下16121215:50:04mysqld_safeNumberofprocessesrunningnow:016121215:50:04mysqld... error-log如下

161212 15:50:04 mysqld_safe Number of processes running now: 0
161212 15:50:04 mysqld_safe mysqld restarted
161212 15:50:05 [Warning] 'for replication startup options' is deprecated and will be removed in a future release. Please use ''CHANGE MASTER'' instead.
161212 15:50:07 [Note] Slave SQL thread initialized, starting replication in log 'mysql-bin.000050' at position 32788587, relay log './mysql-relay-bin.000041' position: 3145994
161212 15:50:07 [Note] Slave I/O thread: connected to master 'zmtread@10.51.62.159:3306',replication started in log 'mysql-bin.000050' at position 33120121
161212 15:50:08 [Note] Event Scheduler: Loaded 0 events
161212 15:50:08 [Note] /www/wdlinux/mysql-5.1.69/libexec/mysqld: ready for connections.
Version: '5.1.69' socket: '/tmp/mysql.sock' port: 3306 Source distribution
161212 15:55:29 mysqld_safe Number of processes running now: 0
161212 15:55:29 mysqld_safe mysqld restarted
161212 15:55:30 [Warning] 'for replication startup options' is deprecated and will be removed in a future release. Please use ''CHANGE MASTER'' instead.
161212 15:55:30 [Note] Slave SQL thread initialized, starting replication in log 'mysql-bin.000050' at position 35336028, relay log './mysql-relay-bin.000043' position: 2216158
161212 15:55:30 [Note] Slave I/O thread: connected to master 'zmtread@10.51.62.159:3306',replication started in log 'mysql-bin.000050' at position 35529695
161212 15:55:30 [Note] Event Scheduler: Loaded 0 events
161212 15:55:30 [Note] /www/wdlinux/mysql-5.1.69/libexec/mysqld: ready for connections.
Version: '5.1.69' socket: '/tmp/mysql.sock' port: 3306 Source distribution
161212 16:02:20 mysqld_safe Number of processes running now: 0
161212 16:02:20 mysqld_safe mysqld restarted
161212 16:02:20 [Warning] 'for replication startup options' is deprecated and will be removed in a future release. Please use ''CHANGE MASTER'' instead.
161212 16:02:23 mysqld_safe mysqld from pid file /www/wdlinux/mysql-5.1.69/var/iZ254nqrxxhZ.pid ended
展开
 我来答
出门在外_1
2016-12-14 · TA获得超过1.2万个赞
知道大有可为答主
回答量:1.4万
采纳率:76%
帮助的人:5936万
展开全部
从服务器有操作
change master to master_host='10.99.0.10',master_user='slave',master_password='slave+11',master_log_file='mysql-bin.000001',master_log_pos=336;
flush privileges;

start slave;
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式