mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -173,7 +173,7 @@ MySQL_Opt
|
||||
public.writeFile('/etc/my.cnf', mycnf)
|
||||
|
||||
os.system(shellStr)
|
||||
WriteLog('TYPE_SOFE', 'MYSQL_CHECK_ERR')
|
||||
public.writeLog('TYPE_SOFE', 'MYSQL_CHECK_ERR')
|
||||
return True
|
||||
|
||||
|
||||
@@ -188,10 +188,11 @@ def status():
|
||||
def start():
|
||||
initMysql = getServerDir() + '/scripts/mysql_install_db ' + '--basedir=' + \
|
||||
getServerDir() + ' --datadir=' + getServerDir() + '/bin/mysql/data'
|
||||
return initMysql
|
||||
# return initMysql
|
||||
|
||||
cmd = getServerDir() + '/bin/mysqld_safe ' + getServerDir() + \
|
||||
'/conf/my.cnf ' + '--user=mysql&'
|
||||
return cmd
|
||||
data = public.execShell(cmd)
|
||||
if data[0] == '':
|
||||
return 'stop'
|
||||
|
||||
Reference in New Issue
Block a user