[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!