database/sql: ensure correct mysql binding
In some packages, mysql is binded to 0.0.0.0 with is not good for HAproxy. We have to ensure that MySQL is binded to api_eth to avoid this issue. Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
parent
9e67b911a3
commit
151203bec9
@ -2,6 +2,7 @@
|
|||||||
# Module:: cloud::database::sql
|
# Module:: cloud::database::sql
|
||||||
#
|
#
|
||||||
[mysqld]
|
[mysqld]
|
||||||
|
bind-address = <%= @api_eth %>
|
||||||
default-storage-engine = innodb
|
default-storage-engine = innodb
|
||||||
collation-server = utf8_general_ci
|
collation-server = utf8_general_ci
|
||||||
init-connect = 'SET NAMES utf8'
|
init-connect = 'SET NAMES utf8'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user