[DOC] use 127.0.0.1 for mysql connection

Closes-bug: 1680948
Change-Id: I90b52d3383423832fedb3127b6a1bb724b6c69d1
This commit is contained in:
Marc Gariepy 2017-04-11 13:49:23 -04:00
parent 9c16a2bab7
commit af288282d7
2 changed files with 7 additions and 7 deletions

View File

@ -64,7 +64,7 @@ To check on the status of your Galera cluster:
.. code-block:: console .. code-block:: console
$ ansible galera_container -m shell -a "mysql -h localhost\ $ ansible galera_container -m shell -a "mysql -h 127.0.0.1\
-e 'show status like \"%wsrep_cluster_%\";'" -e 'show status like \"%wsrep_cluster_%\";'"
When a module is being used as an ad-hoc command, there are a few parameters When a module is being used as an ad-hoc command, there are a few parameters

View File

@ -18,7 +18,7 @@ It should give you information about the status of your cluster.
.. code-block:: shell-session .. code-block:: shell-session
# ansible galera_container -m shell -a "mysql -h localhost \ # ansible galera_container -m shell -a "mysql -h 127.0.0.1 \
-e 'show status like \"%wsrep_cluster_%\";'" -e 'show status like \"%wsrep_cluster_%\";'"
node3_galera_container-3ea2cbd3 | FAILED | rc=1 >> node3_galera_container-3ea2cbd3 | FAILED | rc=1 >>
ERROR 2002 (HY000): Can't connect to local MySQL server ERROR 2002 (HY000): Can't connect to local MySQL server
@ -168,7 +168,7 @@ continue to process SQL requests.
.. code-block:: shell-session .. code-block:: shell-session
# ansible galera_container -m shell -a "mysql -h localhost \ # ansible galera_container -m shell -a "mysql -h 127.0.0.1 \
-e 'show status like \"%wsrep_cluster_%\";'" -e 'show status like \"%wsrep_cluster_%\";'"
node3_galera_container-3ea2cbd3 | FAILED | rc=1 >> node3_galera_container-3ea2cbd3 | FAILED | rc=1 >>
ERROR 2002 (HY000): Can't connect to local MySQL server through ERROR 2002 (HY000): Can't connect to local MySQL server through
@ -210,7 +210,7 @@ recover cannot join the cluster because it no longer exists.
.. code-block:: shell-session .. code-block:: shell-session
# ansible galera_container -m shell -a "mysql \ # ansible galera_container -m shell -a "mysql \
-h localhost -e 'show status like \"%wsrep_cluster_%\";'" -h 127.0.0.1 -e 'show status like \"%wsrep_cluster_%\";'"
node2_galera_container-49a47d25 | FAILED | rc=1 >> node2_galera_container-49a47d25 | FAILED | rc=1 >>
ERROR 2002 (HY000): Can't connect to local MySQL server ERROR 2002 (HY000): Can't connect to local MySQL server
through socket '/var/run/mysqld/mysqld.sock' (111) through socket '/var/run/mysqld/mysqld.sock' (111)
@ -260,7 +260,7 @@ recover cannot join the cluster because it no longer exists.
.. code-block:: shell-session .. code-block:: shell-session
# ansible galera_container -m shell -a "mysql \ # ansible galera_container -m shell -a "mysql \
-h localhost -e 'show status like \"%wsrep_cluster_%\";'" -h 127.0.0.1 -e 'show status like \"%wsrep_cluster_%\";'"
node3_galera_container-3ea2cbd3 | success | rc=0 >> node3_galera_container-3ea2cbd3 | success | rc=0 >>
Variable_name Value Variable_name Value
wsrep_cluster_conf_id 17 wsrep_cluster_conf_id 17
@ -380,7 +380,7 @@ Recovering from certain failures require rebuilding one or more containers.
.. code-block:: shell-session .. code-block:: shell-session
# ansible galera_container -m shell -a "mysql \ # ansible galera_container -m shell -a "mysql \
-h localhost -e 'show status like \"%wsrep_cluster_%\";'" -h 127.0.0.1 -e 'show status like \"%wsrep_cluster_%\";'"
node3_galera_container-3ea2cbd3 | success | rc=0 >> node3_galera_container-3ea2cbd3 | success | rc=0 >>
Variable_name Value Variable_name Value
wsrep_cluster_conf_id 1 wsrep_cluster_conf_id 1
@ -420,7 +420,7 @@ Recovering from certain failures require rebuilding one or more containers.
.. code-block:: shell-session .. code-block:: shell-session
# ansible galera_container -m shell -a "mysql \ # ansible galera_container -m shell -a "mysql \
-h localhost -e 'show status like \"%wsrep_cluster_%\";'" -h 127.0.0.1 -e 'show status like \"%wsrep_cluster_%\";'"
node2_galera_container-49a47d25 | success | rc=0 >> node2_galera_container-49a47d25 | success | rc=0 >>
Variable_name Value Variable_name Value
wsrep_cluster_conf_id 5 wsrep_cluster_conf_id 5