Update index.py
This commit is contained in:
parent
d036f23f4a
commit
9da7470b4e
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue