Update index.py

This commit is contained in:
Mr Chen 2024-12-15 04:22:07 +08:00
parent cf707df5e0
commit 16c90290f9
1 changed files with 2 additions and 0 deletions

View File

@ -449,6 +449,8 @@ def initMysql8Data():
data = mw.execShell(cmd)
if data[1].lower().find('error') != -1:
exit("Init MySQL8+ Data Error:"+data[1])
if data[1].lower().find('not found') != -1:
exit("Init MySQL8+ Data Error:"+data[1])
if not mw.isAppleSystem():
mw.execShell('chown -R mysql:mysql ' + datadir)