From a6fe7e2fe3cb3f8c7b9f3c0c5aee67dce6fd05f0 Mon Sep 17 00:00:00 2001 From: dami Date: Sun, 27 Jul 2025 16:49:17 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 152cfa3c2..bb2e2f10a 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -1519,7 +1519,8 @@ def setRootPwdForce(new_password,version=''): # 设置新密码 cmd_newpass = serverdir+f"/bin/mysql -u root -e \"ALTER USER 'root'@'localhost' IDENTIFIED BY '{new_password}'; FLUSH PRIVILEGES;\"" data = mw.execShell(cmd_newpass) - print(cmd_newpass, "新密码",data) + print("新密码",cmd_newpass) + print(data) # 验证密码 cmd = serverdir+f"/bin/mysql -u root -p'{new_password}' -e 'SHOW DATABASES;'"