mysql启动主从报错

Slave SQL: Slave failed to initialize relay log info structure from the repository, Error_code: 1872

问题:

mysql> start slave;

ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository


查看mysql错误日志:

解决方法:

应该是之前做过主从生成了主从同步日志,到mysql_data3306目录删除同步日志即可启动

rm -rf relay-log.info

你可能感兴趣的:(mysql启动主从报错)