diff --git a/templates/my.cnf b/templates/my.cnf index bf6a605..921c91a 100644 --- a/templates/my.cnf +++ b/templates/my.cnf @@ -1,6 +1,10 @@ # Juju managed file - don't change as charm will overwrite your changed! [mysqld] +# Never resolve IP's to hostnames; it adds overhead +# and is not really reliable for use with ACL's. +skip-name-resolve + {% if bind_address %} bind-address = {{ bind_address }} {% endif %} diff --git a/templates/mysqld.cnf b/templates/mysqld.cnf index b75a5f4..114133d 100644 --- a/templates/mysqld.cnf +++ b/templates/mysqld.cnf @@ -12,6 +12,10 @@ tmpdir = /tmp lc-messages-dir = /usr/share/mysql skip-external-locking +# Never resolve IP's to hostnames; it adds overhead +# and is not really reliable for use with ACL's. +skip-name-resolve + # # * Networking #