Skip to content

Instantly share code, notes, and snippets.

@CaptTofu
Created October 2, 2015 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CaptTofu/b9ce135beab683b81626 to your computer and use it in GitHub Desktop.
Save CaptTofu/b9ce135beab683b81626 to your computer and use it in GitHub Desktop.
(ansible-env)Patricks-MacBook-Pro:mysql-galera patg$ kubectl exec pxc-node3-0b5mc -c pxc-node3 -i -t -- bash -il
root@pxc-node3-0b5mc:/# mysql -u root -p -h pxc-cluster
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.6.24-72.2-56-log Percona XtraDB Cluster (GPL), Release rel72.2, Revision 43abf03, WSREP version 25.11, wsrep_25.11
Copyright (c) 2009-2015 Percona LLC and/or its affiliates
Copyright (c) 2000, 2015, 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> show status like 'wsrep_cluster_size';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | 3 |
+--------------------+-------+
1 row in set (0.14 sec)
mysql>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment