From fe5a9d66b338aea68ffcf4297afa1e73e010032a Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Tue, 12 Nov 2013 17:52:32 +0530 Subject: [PATCH] fix wnf.py --mysql --- wnf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wnf.py b/wnf.py index eab1e52781..f72758805d 100755 --- a/wnf.py +++ b/wnf.py @@ -569,7 +569,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, webnotes.conf.db_host or "localhost"]) + os.execv(msq, [msq, '-u', webnotes.conf.db_name, '-p'+webnotes.conf.db_password, webnotes.conf.db_name, '-h', webnotes.conf.db_host or "localhost"]) webnotes.destroy() @cmd