[摘要][ "$SQLStatus" =="No" ];then #判断错误类型if ["$Errno" -eq 0];then #可能是sa...
[ "$SQLStatus" ==
"No" ];then #判断错误类型
if [
"$Errno" -eq 0
];then #可能是salve线程未启动
$MYSQL_CMD
-e "start
slave io_thread;start slave sql_thread;"
echo "Cause
slave threads doesnot's running,trying start slsave io_thread;start slave sql_thread;" >>
$SlaveStatusFile
MailTitle="[Warning]
Slave threads stoped on $HOST_IP $HOST_PORT"
elif [
"$Errno" -eq 1007
]
关键词:详细说明在线上MYSQL同步报错故障处理办法代码总结