From d6057e3f18e2a1d8ff4c7ed3bb067e1314f4dc32 Mon Sep 17 00:00:00 2001 From: sahil28297 <37302950+sahil28297@users.noreply.github.com> Date: Tue, 29 Sep 2020 18:51:20 +0530 Subject: [PATCH] fix: use db_root_username --- build/common/commands/new.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/common/commands/new.py b/build/common/commands/new.py index 729f09dc..10fce846 100644 --- a/build/common/commands/new.py +++ b/build/common/commands/new.py @@ -80,7 +80,7 @@ def main(): db_name = site_config.get('db_name') db_password = site_config.get('db_password') - mysql_command = ["mysql", f"-h{db_host}", f"-u{mariadb_root_username}", f"-p{mariadb_root_password}", "-e"] + mysql_command = ["mysql", f"-h{db_host}", f"-u{db_root_username}", f"-p{mariadb_root_password}", "-e"] # Drop User if exists command = mysql_command + [f"DROP USER IF EXISTS '{db_name}'@'%'; FLUSH PRIVILEGES;"]