restore db fix. Allow dbname with $.
Terminal didn't allow $ without escape char.
This commit is contained in:
parent
68b1fe780b
commit
7627a051da
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.replace(" ", "\ "), target, source))
|
||||
ret = os.system("%s -u root -p%s %s < %s"%(mysql, root_password.replace(" ", "\ "), target.replace("$", "\$"), source))
|
||||
except Exception,e:
|
||||
raise e
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue