mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -309,7 +309,8 @@ def initMysql8Pwd():
|
||||
|
||||
tmp_file = "/tmp/mysql_ya_init_tmp.log"
|
||||
mw.writeFile(tmp_file, alter_root_pwd)
|
||||
cmd_pass = 'mysql ' + getServerDir() + ' -uroot -proot < ' + tmp_file
|
||||
cmd_pass = 'mysql --defaults-file=' + \
|
||||
getServerDir() + ' -uroot -proot < ' + tmp_file
|
||||
|
||||
data = mw.execShell(cmd_pass)
|
||||
# print(data)
|
||||
|
||||
Reference in New Issue
Block a user