mysql集群如何快速修改同一用户不同IP的用户密码

如何快速修改mysql集群内的同一用户不同IP的用户密码

修改方法(直接更新该用户下的密码即可)

update mysql.user set authentication_string=password('****') where user='user_name';

flush privileges;

如果是主从关系的集群,需要注意的是该用户如果还承担了主从复制,则如果某个节点的主从异常断开了则需要重新change主库密码。

change master to master_user='user_name', master_password='****';

原文地址:https://www.cnblogs.com/whiteY/p/14596725.html