您的位置:首页 > 编程语言 > Go语言

主库磁盘满,从库io线程报错Got fatal error 1236 from master when reading data from binary log

2015-11-11 18:31 639 查看
Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'binlog truncated in the middle of event; consider out of disk space on master; the first event 'mysql-bin.001841' at 826366537, the last event read from './mysql-bin.002333'
at 2828282975, the last byte read from './mysql-bin.002333' at 2828283169.'

mysqlbinlog ./mysql-bin.002333 --start-position=2828282975

显示2828282975后没有日志,并有错误信息,所以直接使用下一个日志,post为0

stop slave;

change master to master_host='10.0.0.x', master_user='', master_password='', master_log_file=./mysql-bin.002333, master_log_pos=0;

start slave;

show slave status\G

显示正在同步,一切正常
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: