GreatSQL社区

搜索

chongzh

MySQL InnoDB集群如何重置MySQL Router管理员密码

chongzh 已有 228 次阅读2023-9-11 15:25 |个人分类:Mysql Router|系统分类:运维实战

​有时需要重置Router管理员密码,怎么办呢?

从MySQL shell中更新密码,更新密码操作会在集群的主节点执行并记录binlog同步的从节点:

<code> MySQL  172.26.170.13:3306 ssl  Py > cluster=dba.get_cluster();
 MySQL  172.26.170.13:3306 ssl  Py > cluster.setup_admin_account('root',update=1,password='123gsug#dd6')
Updating user root@%.
Updating user password.
Account root@% was successfully updated.



评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 立即注册

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-5-3 04:26 , Processed in 0.012697 second(s), 8 queries , Redis On.
返回顶部