Update index.py

This commit is contained in:
midoks 2022-07-13 11:04:46 +08:00
parent 3ae2f0db68
commit c6f3fae7b5
1 changed files with 1 additions and 2 deletions

View File

@ -399,7 +399,6 @@ def setMyDbPos():
if not os.path.exists(t_datadir):
mw.execShell('mkdir -p ' + t_datadir)
# mw.execShell('/etc/init.d/mysqld stop')
stop()
mw.execShell('cp -rf ' + s_datadir + '/* ' + t_datadir + '/')
mw.execShell('chown -R mysql mysql ' + t_datadir)
@ -468,7 +467,7 @@ def runInfo():
# print data
if data[0] == 1045 or data[0] == 2003:
pwd = db.getPwd()
return mw.returnJson(False, 'mysql password error:' + pwd + '!')
return mw.returnJson(False, 'mariadb password error:' + pwd + '!')
except Exception as e:
pass