Update index.py

This commit is contained in:
midoks
2022-09-25 13:52:21 +08:00
parent 84b0fbc8ef
commit c51e50f815
+2 -2
View File
@@ -432,11 +432,11 @@ def initMysqlPwd():
drop_hostname = "drop user ''@'" + hostname + "'"
drop_hostname = serverdir + '/bin/mysql --defaults-file=' + \
myconf + ' -uroot -p' + pwd + ' -e "drop user ''@' + hostname + '";'
myconf + ' -uroot -p' + pwd + ' -e "drop user \'\'@\'' + hostname + '\'";'
mw.execShell(drop_hostname)
drop_root_hostname = serverdir + '/bin/mysql --defaults-file=' + \
myconf + ' -uroot -p' + pwd + ' -e "drop user \'root\'@' + hostname + '";'
myconf + ' -uroot -p' + pwd + ' -e "drop user \'root\'@\'' + hostname + '\'";'
mw.execShell(drop_root_hostname)
pSqliteDb('config').where('id=?', (1,)).save('mysql_root', (pwd,))