From a2853e0da4f8011e5dd47ed6d4dced10ca0c3dfc Mon Sep 17 00:00:00 2001 From: Hugh Saunders Date: Tue, 28 Oct 2014 11:52:48 +0000 Subject: [PATCH] Use local socket for mysql client connection This affects mysql client as well as mysqladmin, which is used in status checks in the init script. It is important that the init script can succeed regardless of LB state. (Prior to this commit, LB IP was used as the host to connect to). Related: #413 --- rpc_deployment/roles/galera_client_cnf/templates/client_my.cnf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc_deployment/roles/galera_client_cnf/templates/client_my.cnf b/rpc_deployment/roles/galera_client_cnf/templates/client_my.cnf index 37e332c084..a310c1261f 100644 --- a/rpc_deployment/roles/galera_client_cnf/templates/client_my.cnf +++ b/rpc_deployment/roles/galera_client_cnf/templates/client_my.cnf @@ -1,4 +1,4 @@ [client] -host={{ mysql_address }} +socket=/var/run/mysqld/mysqld.sock user=root password={{ mysql_password }}