Update index.py

This commit is contained in:
midoks
2022-11-07 10:29:37 +08:00
parent c3be68c3fb
commit 248d8ad27e
+2 -2
View File
@@ -332,9 +332,9 @@ def initMysql8Pwd():
'"UPDATE mysql.user SET password=PASSWORD(\'' + \
pwd + "') WHERE user='root';"
cmd_pass = cmd_pass + 'flush privileges;"'
print(cmd_pass)
# print(cmd_pass)
data = mw.execShell(cmd_pass)
print(data)
# print(data)
# 删除空账户
drop_empty_user = cmd_my + ' --defaults-file=' + myconf + ' -uroot -p' + \