有时需要重置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.