Percona XtraDB Cluster 5.6安装配置步骤(5)

[root@M1905 mysql]# mysql -u root -p123456 -S /tmp/mysql.sock 
mysql> show databases;
+--------------------+
| Database          |
+--------------------+
| information_schema |
| liu                |
| log                |
| mysql              |
| performance_schema |
| test              |
+--------------------+
6 rows in set (0.00 sec)
 
mysql> use liu
Database changed
mysql> show tables;
+---------------+
| Tables_in_liu |
+---------------+
| liu01        |
+---------------+
1 row in set (0.00 sec)

测试Cluster功能

7.1模拟192.168.3.81节点1宕机

[root@M1905 ~]# service mysql stop
Shutting down MySQL (Percona XtraDB Cluster).... SUCCESS!

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/5d3e055b8dd8fd788eeaf818f145decb.html