修改密码
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'mynewpassword';
查看plugin设置
select host, user, plugin from user;
刷新缓存
FLUSH PRIVILEGES;
重起服务
systemctl restart mysql.service
主从语句执行配置
change master to master_host='192.168.8.20', master_user='slave2', master_password='111111',master_log_file='bin-log.000002', master_log_pos=157;
本文为宁若水!原创文章,转载无需和我联系,但请注明来自[若水]博客 www.lalaya.net