mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-08 14:21:05 +00:00
Merge pull request #381 from everyx/develop
fix: make new command compatible with MySQL 8
This commit is contained in:
commit
b17bd39fc9
@ -93,7 +93,10 @@ def main():
|
|||||||
if config.get(RDS_DB) or site_config.get(RDS_DB):
|
if config.get(RDS_DB) or site_config.get(RDS_DB):
|
||||||
grant_privileges = RDS_PRIVILEGES
|
grant_privileges = RDS_PRIVILEGES
|
||||||
|
|
||||||
command = mysql_command + [f"GRANT {grant_privileges} ON `{db_name}`.* TO '{db_name}'@'%' IDENTIFIED BY '{db_password}'; FLUSH PRIVILEGES;"]
|
command = mysql_command + [f"\
|
||||||
|
CREATE USER IF NOT EXISTS '{db_name}'@'%' IDENTIFIED BY '{db_password}'; \
|
||||||
|
GRANT {grant_privileges} ON `{db_name}`.* TO '{db_name}'@'%'; \
|
||||||
|
FLUSH PRIVILEGES;"]
|
||||||
run_command(command)
|
run_command(command)
|
||||||
|
|
||||||
if frappe.redis_server:
|
if frappe.redis_server:
|
||||||
|
Loading…
Reference in New Issue
Block a user