数据没有同步之后,查看日志看到错误(为了好看换行了)
Slave I/O for channel '': error connecting to master 'repl@192.168.0.104:3306' - retry-
time: 60 retries: 24 message: Authentication plugin 'caching_sha2_password' reported error:
Authentication requires secure connection. Error_code: MY-002061
查看错误大概意思就是连不上
repl是搭建主主的同步账号名,
在被同步的主机上用repl登录一下MySQL就行了
我的报错连不上192.168.0.104,在192.168.0.104服务器上登录
mysql -u repl -p 密码