我是靠谱客的博主 纯真心情,这篇文章主要介绍mysql mgr 查看主_MySQL 5.7 MGR单主确定主节点方法,现在分享给大家,希望可以做个参考。

MySQL 5.7 MGR单主确定主节点是哪个,我们可以通过成员ID来判断,然后结合read_only参数来确认。

[root@localhost ~]# mysql -uroot -p -P 3306 -h 127.0.0.1

mysql: [Warning] Using a password on the command line interface can be insecure.

Welcome to the MySQL monitor. Commands end with ; or g.

Your MySQL connection id is 857246

Server version: 5.7.26-29-log Percona Server (GPL)

Copyright (c) 2009-2019 Percona LLC and/or its affiliates

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type ‘help;‘ or ‘h‘ for help. Type ‘c‘ to clear the current input statement.

mysql> status

--------------

mysql Ver 14.14 Distrib 5.7.26-29, for Linux (x86_64) using EditLine wrapper

Connection id:

最后

以上就是纯真心情最近收集整理的关于mysql mgr 查看主_MySQL 5.7 MGR单主确定主节点方法的全部内容,更多相关mysql内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(56)

评论列表共有 0 条评论

立即
投稿
返回
顶部