1045 | error connecting to master 'slave_user@192.168.0.75:3306' - retry-time: 6
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了1045 | error connecting to master 'slave_user@192.168.0.75:3306' - retry-time: 6相关的知识,希望对你有一定的参考价值。
mysql 主从复制问题整理
问题:
1045 | error connecting to master ‘[email protected]:3306‘ - retry-time: 6
原因:
其实是MySQL的验证没有通过
解决:
主要是主从服务器上的密码不正确导致。需要检查master和slave中的配置,
master
GRANT REPLICATION SLAVE ON *.* TO ‘slave_user‘@‘%‘ IDENTIFIED BY ‘123456‘;
slave
CHANGE MASTER TO MASTER_HOST=‘192.168.0.75‘,MASTER_USER=‘slave_user‘, MASTER_PASSWORD=‘123456‘, MASTER_LOG_FILE=‘mysql-bin.000001‘, MASTER_LOG_POS= 107;
详细可查看
以上是关于1045 | error connecting to master 'slave_user@192.168.0.75:3306' - retry-time: 6的主要内容,如果未能解决你的问题,请参考以下文章
MySQL问题:2002 - Can‘t connect to server on ‘localhost‘(10061)已解决
Mac 下mysql 登录报错ERROR 1045 (28000)
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N O)
ERROR 1142 (42000): GRANT command denied to user ** 或 ERROR 1045 (28000): Access denied for user