设为首页 加入收藏

TOP

MySQL从库服务器down机报错Could not parse relay log event entry(三)
2017-03-30 14:17:26 】 浏览:449
Tags:MySQL 从库 服务器 down Could not parse relay log event entry
lt;MASTER_HOST>",


MASTER_USER="<SLAVE_USER>",


MASTER_PASSWORD="<SLAVE_PASSWORD>",


MASTER_LOG_FILE="<Relay_Master_Log_File>",


MASTER_LOG_POS=<Exec_Master_Log_Pos>;


不管用那个方法,最后记得在从服务器上启动复制,并检查工作是否正常:


mysql> START SLAVE;


mysql> SHOW SLAVE STATUS;


注意:


MariaDB [(none)]> show slave status\G;


显示的Master_Log_File和 Read_Master_Log_Pos 这两个只对应这master


show master  status\G;的文件号和位置


*************************** 1. row ***************************


Slave_IO_State: Waiting for master to send event


Master_Host: 192.168.0.143


Master_User: info_syncer


Master_Port: 3306


Connect_Retry: 60


Master_Log_File: mysql-bin.000019


Read_Master_Log_Pos: 1038


总结:万不得一不要在服务还没有停的情况下去停服务器,尤其是数据库,否则会出现意想不到的错误,但是当服务器出现不可解决的问题的时候,一定要果断的去重启,不要犹豫,难免出现更严重的问题,再就是play或者tomcat等等这些服务最好分开跑,以免互相影响。


首页 上一页 1 2 3 4 下一页 尾页 3/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇mysqldump备份结合binlog日志恢复 下一篇CentOS 6.8源码安装 Redis 3.2.8

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目