From acb49839be55acff01063485a792995c93502c42 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 18 Jun 2022 19:50:30 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 01e8a2bfb..5952da5a3 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -441,7 +441,7 @@ def my57cmd(version, method): subprocess.Popen(cmd_init_one, stdout=subprocess.PIPE, shell=True, bufsize=4096, stderr=subprocess.PIPE) - cmd_kill = "ps -ef|grep mysql |grep -v grep|awk '{print $2}'|xargs kill" + cmd_kill = "ps -ef|grep mysql |grep -v grep|grep -v py|awk '{print $2}'|xargs kill" mw.execShell(cmd_kill) cmd_start2 = gsDir + '/bin/mysqld_safe --defaults-file=' + gsDir + '/etc/my.cnf &'