This commit is contained in:
parent
1f643d0657
commit
e3fcb14efc
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue