Modified restore_database in db_schema.py to account for spaces in root_password
This commit is contained in:
parent
531a9fe0e3
commit
088b6429da
1 changed files with 1 additions and 1 deletions
|
|
@ -358,7 +358,7 @@ class DbManager:
|
|||
mysql = mysql_path and os.path.join(mysql_path, 'mysql') or 'mysql'
|
||||
|
||||
try:
|
||||
ret = os.system("%s -u root -p%s %s < %s"%(mysql, root_password, target, source))
|
||||
ret = os.system("%s -u root -p%s %s < %s"%(mysql, root_password.replace(" ", "\ ")), target, source))
|
||||
except Exception,e:
|
||||
raise e
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue