Update wnf.py
use db_host in config file for mysql command
This commit is contained in:
parent
31330c0374
commit
b0d760cb36
1 changed files with 1 additions and 1 deletions
2
wnf.py
2
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue