This commit is contained in:
Mr Chen
2019-01-04 19:16:47 +08:00
parent 4ebf6af532
commit 5a52354541
3 changed files with 34 additions and 9 deletions
+2 -2
View File
@@ -188,11 +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
# return cmd
data = public.execShell(cmd)
if data[0] == '':
return 'stop'