Home > Database > Mysql Tutorial > MySQL 启动slave报错 ERROR 1201 (HY000)

MySQL 启动slave报错 ERROR 1201 (HY000)

WBOY
Release: 2016-06-07 17:17:03
Original
1313 people have browsed it

MySQL 启动slave报错 ERROR 1201 (HY000) ,原来是有两个文件要删掉。估计是昨天其他人测试没有成功的时候生成的。

配置了MySQL的复制,启动slave的时候报错如下:


mysql> start slave;
ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error log
mysql>


上网找了一下,原来是有两个文件要删掉。估计是昨天其他人测试没有成功的时候生成的。

/var/lib/mysql/master.info
/var/lib/mysql/relay-log.info


删掉即可。

mysql> start slave;
Query OK, 0 rows affected (0.01 sec)

mysql>

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template