mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:59:25 +08:00
Update index.py
This commit is contained in:
@@ -416,7 +416,7 @@ def initMysqlPwd():
|
||||
# pwd + "') WHERE user='root'"
|
||||
cmd_pass = serverdir + '/bin/mysql -uroot -e'
|
||||
cmd_pass = cmd_pass + \
|
||||
'"UPDATE mysql.user SET password=PASSWORD(' + \
|
||||
'"UPDATE mysql.user SET password=PASSWORD(\'' + \
|
||||
pwd + "') WHERE user='root';"
|
||||
cmd_pass = cmd_pass + 'flush privileges;"'
|
||||
data = mw.execShell(cmd_pass)
|
||||
|
||||
Reference in New Issue
Block a user