From 16e9730125dbc3aed45f0c5fa77daf1386c22e68 Mon Sep 17 00:00:00 2001 From: Antoine Catton Date: Tue, 27 Sep 2011 16:13:16 +0200 Subject: [PATCH] MySQL fix: mysql wasn't accepting remote connections --- slapos/recipe/mysql/mysql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slapos/recipe/mysql/mysql.py b/slapos/recipe/mysql/mysql.py index e2036076a6..34d3da043b 100644 --- a/slapos/recipe/mysql/mysql.py +++ b/slapos/recipe/mysql/mysql.py @@ -16,8 +16,8 @@ def runMysql(args): # XXX: Protect with proper root password # XXX: Follow http://dev.mysql.com/doc/refman/5.0/en/default-privileges.html popen = subprocess.Popen([conf['mysql_install_binary'], - '--skip-name-resolve', '--no-defaults', '--datadir=%s' % - conf['data_directory']], + '--skip-name-resolve', '--skip-host-cache', '--no-defaults', + '--datadir=%s' % conf['data_directory']], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) result = popen.communicate()[0] if popen.returncode is None or popen.returncode != 0: -- 2.25.1