From cbda8c6cde5382ee330b577c31e6004b5af1a6e1 Mon Sep 17 00:00:00 2001 From: augushong Date: Thu, 7 Apr 2022 23:54:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9C=A8=E7=BA=BF=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=95=B0=E6=8D=AE=E5=BA=93=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/install.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/install.php b/public/install.php index fbf2064..963893d 100644 --- a/public/install.php +++ b/public/install.php @@ -243,6 +243,15 @@ function install($username, $password, $config, $adminUrl) Db::startTrans(); try { foreach ($sqlArray as $vo) { + foreach ($sqlArray as $vo) { + if (strpos($vo, 'LOCK TABLES') === 0) { + continue; + } + if (strpos($vo, 'UNLOCK') === 0) { + continue; + } + Db::execute($vo); + } Db::connect('install')->execute($vo); } Db::connect('install')