From 09e79aff636f0852f105cf6ffa7edd9ee6df3c83 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 22 Dec 2023 00:55:18 +0800 Subject: [PATCH] Update index.py --- plugins/mariadb/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mariadb/index.py b/plugins/mariadb/index.py index 63e186f1f..419ddf0c1 100755 --- a/plugins/mariadb/index.py +++ b/plugins/mariadb/index.py @@ -1283,7 +1283,7 @@ def resetDbRootPwd(version): pSqliteDb('config').where('id=?', (1,)).save('mysql_root', (pwd,)) db_option = "-S " + serverdir + "/mysql.sock" - cmd_pass = serverdir + '/bin/mysql ' + db_option + ' -uroot -e' + cmd_pass = serverdir + '/bin/mariadb ' + db_option + ' -uroot -e' cmd_pass = cmd_pass + \ "\"flush privileges;use mysql;grant all privileges on *.* to 'root'@'localhost' identified by '" + pwd + "';" cmd_pass = cmd_pass + "flush privileges;\""