diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index e55fc212a..d54d6db75 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -378,8 +378,8 @@ def my8cmd(version, method): if method == "stop": mw.execShell(cmd) return "ok" - subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True, - bufsize=4096, stderr=subprocess.PIPE) + subprocess.run(cmd, stdout=subprocess.PIPE, shell=True, + bufsize=4096, stderr=subprocess.PIPE) return 'ok' except Exception as e: print(e)