From b0d760cb366b24470e0a63e7ff11294c83aff87c Mon Sep 17 00:00:00 2001 From: miguelfontanes Date: Mon, 4 Nov 2013 14:03:42 -0500 Subject: [PATCH] Update wnf.py use db_host in config file for mysql command --- wnf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wnf.py b/wnf.py index 76e898c85b..a5156063b4 100755 --- a/wnf.py +++ b/wnf.py @@ -552,7 +552,7 @@ def mysql(site=None): import commands, os msq = commands.getoutput('which mysql') webnotes.init(site=site) - os.execv(msq, [msq, '-u', webnotes.conf.db_name, '-p'+webnotes.conf.db_password, webnotes.conf.db_name]) + os.execv(msq, [msq, '-u', webnotes.conf.db_name, '-p'+webnotes.conf.db_password, webnotes.conf.db_name, webnotes.conf.db_host or "localhost"]) webnotes.destroy() @cmd