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
This commit is contained in:
Hugh Saunders 2014-10-28 11:52:48 +00:00
parent 046bdd32ca
commit a2853e0da4

View File

@ -1,4 +1,4 @@
[client]
host={{ mysql_address }}
socket=/var/run/mysqld/mysqld.sock
user=root
password={{ mysql_password }}