slave_sql_running:no和slave_IQ_running:no解决方法

slave_sql_running:no,一般是事务回滚造成 解决方式如下:
stop slave
set GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
start slave
show slave status \G;

slave_IQ_running:no解决方式如下:
报错 Got fatal error 1236 from master when reading data from binary log: 'Client requested master to start replication from position >
stop slave
change master to master_host=’主库iP’,master_user=’用户名’,master_password=”密码”,master_log_file=”主库log文件名”,master_log_pos=主库postion值;
start slave;
master_log_file和master_log_pos查看方式:
主库 show master status\G;

你可能感兴趣的:(mysql)