Mysql复制错误error
尝试配置 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复制发帖纪念一下。
下一篇: laravel框架少见方法详解
推荐阅读
-
mysql-Error 1115 Unknow Character Set : utf8
-
【MySQL案例】ERROR1786(HY000)_MySQL
-
Linux下MySQL Error 1130 不能远程访问
-
CodeIgniter错误mysql_connect(): No such file or directory解决方法_php实例
-
mysql slave节点多线程复制
-
MySQL(五) 主从复制 – 开启并发SQL线程复制
-
mysql5.6 基于GTID及多线程复制详解
-
Mysql 5.7 从节点配置多线程主从复制
-
mysql1064错误原因及解决办法_MySQL
-
MySQL之——MS主从复制(读写分离)实现