优化在线安装数据库的问题;

This commit is contained in:
2022-04-07 23:54:45 +08:00
parent 22e306626c
commit cbda8c6cde

View File

@@ -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')