Update index.py

This commit is contained in:
midoks
2022-11-07 10:48:14 +08:00
parent a7f73e10ae
commit 31815c489b
+1 -1
View File
@@ -333,7 +333,7 @@ def initMysql8Pwd():
cmd_pass = cmd_my + ' --defaults-file=' + myconf + ' -uroot -e'
cmd_pass = cmd_pass + \
'"alter user \'root\'@\'localhost\' identified by \'' + pwd + '\';"'
'"alter user \'root\'@\'localhost\' identified by \'' + pwd + '\';'
cmd_pass = cmd_pass + 'flush privileges;"'
# print(cmd_pass)
data = mw.execShell(cmd_pass)