mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 19:42:47 +08:00
优化在线安装数据库的问题;
This commit is contained in:
@@ -243,6 +243,15 @@ function install($username, $password, $config, $adminUrl)
|
|||||||
Db::startTrans();
|
Db::startTrans();
|
||||||
try {
|
try {
|
||||||
foreach ($sqlArray as $vo) {
|
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')->execute($vo);
|
||||||
}
|
}
|
||||||
Db::connect('install')
|
Db::connect('install')
|
||||||
|
|||||||
Reference in New Issue
Block a user