mirror of
https://github.com/frappe/frappe_docker.git
synced 2025-01-14 11:03:13 +00:00
Merge pull request #220 from revant/fix-restore-backup
fix: restore backup create user password command
This commit is contained in:
commit
6bf66e7077
@ -79,7 +79,7 @@ def restore_database(files_base, site):
|
|||||||
os.system(create_user)
|
os.system(create_user)
|
||||||
|
|
||||||
# create user password
|
# create user password
|
||||||
set_user_password = mysql_command + "\"UPDATE mysql.user SET authentication_string = PASSWORD('{db_password}') WHERE User = \'{db_name}\' AND Host = \'%\';\"".format(
|
set_user_password = mysql_command + "\"ALTER USER '{db_name}'@'%' IDENTIFIED BY '{db_password}'; FLUSH PRIVILEGES;\"".format(
|
||||||
db_name=site_config.get('db_name'),
|
db_name=site_config.get('db_name'),
|
||||||
db_password=site_config.get('db_password')
|
db_password=site_config.get('db_password')
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user