This commit is contained in:
midoks 2022-11-07 19:34:09 +08:00
parent 1f643d0657
commit e3fcb14efc
2 changed files with 5 additions and 1 deletions

View File

@ -335,6 +335,10 @@ def initMysqlData():
data = mw.execShell(cmd)
# print(data[0])
# print(data[1])
if not mw.isAppleSystem():
mw.execShell('chown -R mysql:mysql ' + serverdir + '/data')
mw.execShell('chmod -R 755 ' + serverdir + '/data')
return False
return True

View File

@ -281,7 +281,7 @@ def initMysql57Data():
if not mw.isAppleSystem():
mw.execShell('chown -R mysql:mysql ' + datadir)
mw.execShell('chmod 755 ' + datadir)
mw.execShell('chmod -R 755 ' + datadir)
return False
return True