Home > Database > Mysql Tutorial > Mysql复制错误error

Mysql复制错误error

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:52:19
Original
2238 people have browsed it

尝试配置 mysql 复制的时候使用 show slave status\G 出现下面的错误: [ERROR] Slave I/O: Master commandCOM_REGISTER_SLAVE failed: Accessdenied for user 'replica'@'12.34.56.78' (using password: YES) ( Errno: 1045 ), Error_code:1597 [ERROR]Slav

尝试配置mysql复制的时候使用show slave status\G出现下面的错误:

 

 [ERROR] Slave I/O: Master commandCOM_REGISTER_SLAVE failed: Accessdenied for user 'replica'@'12.34.56.78' (using password: YES) (Errno: 1045), Error_code:1597

[ERROR]Slave I/O thread couldn't register on master

 

看这个错误是因为权限不够被拒绝,查了一下文档还需要在master上对复制账号增加下面的权限:

 

#(master server) add grant to replica user to connect from the new slave server

mysql>grant replication slave on *.* to 'replica'@'new_slave_name_or_ip' identifiedby 'password';

 

运行之后复制可以正常工作,可以看到
                 

 Slave_IO_Running=Yes
   Slave_SQL_Running=Yes

 

创建表测试数据也复制正常,第一次配置mysql复制发帖纪念一下。

Related labels:
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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template