Update wnf.py

use db_host in config file for mysql command
This commit is contained in:
miguelfontanes 2013-11-04 14:03:42 -05:00
parent 31330c0374
commit b0d760cb36

2
wnf.py
View file

@ -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