From a1831e3cd65a19b9c9920e0992956472bafd6d8b Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 7 Nov 2022 14:30:55 +0800 Subject: [PATCH] Update index.py --- plugins/mysql-apt/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mysql-apt/index.py b/plugins/mysql-apt/index.py index 87408a638..0edea40af 100755 --- a/plugins/mysql-apt/index.py +++ b/plugins/mysql-apt/index.py @@ -299,7 +299,7 @@ def initMysql8Data(): serverdir = getServerDir() user = pGetDbUser() - cmd = 'mysqld --basedir=/usr --datadir=' + datadir + \ + cmd = serverdir + '/bin/usr/sbin/mysqld --basedir=/usr --datadir=' + datadir + \ ' --initialize-insecure --lower-case-table-names=1' data = mw.execShell(cmd) if data[1].find('ERROR') != -1: