From c6f3fae7b565cfeea1a456e251b919521ba97ea4 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 13 Jul 2022 11:04:46 +0800 Subject: [PATCH] Update index.py --- plugins/mariadb/index.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/mariadb/index.py b/plugins/mariadb/index.py index 27201a517..4579c7af9 100755 --- a/plugins/mariadb/index.py +++ b/plugins/mariadb/index.py @@ -399,7 +399,6 @@ def setMyDbPos(): if not os.path.exists(t_datadir): mw.execShell('mkdir -p ' + t_datadir) - # mw.execShell('/etc/init.d/mysqld stop') stop() mw.execShell('cp -rf ' + s_datadir + '/* ' + t_datadir + '/') mw.execShell('chown -R mysql mysql ' + t_datadir) @@ -468,7 +467,7 @@ def runInfo(): # print data if data[0] == 1045 or data[0] == 2003: pwd = db.getPwd() - return mw.returnJson(False, 'mysql password error:' + pwd + '!') + return mw.returnJson(False, 'mariadb password error:' + pwd + '!') except Exception as e: pass