mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
优化在线安装数据库的问题;
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user