From 465fd8c48747bd334ab6d8fbbe5a6855472cdaef Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 12 Jul 2022 10:21:31 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 9a11a5324..3c59f38b4 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -322,6 +322,9 @@ def initMysqlData(): def initMysql57Data(): + ''' + cd /www/server/mysql && /www/server/mysql/bin/mysqld --defaults-file=/www/server/mysql/etc/my.cnf --initialize-insecure --explicit_defaults_for_timestamp + ''' datadir = getDataDir() if not os.path.exists(datadir + '/mysql'): serverdir = getServerDir() @@ -329,8 +332,7 @@ def initMysql57Data(): user = pGetDbUser() cmd = 'cd ' + serverdir + ' && ./bin/mysqld --defaults-file=' + myconf + \ ' --initialize-insecure --explicit_defaults_for_timestamp' - # print(mw.execShell(cmd)) - + data = mw.execShell(cmd) return False return True