* connect to db after successful setup so siteconfig doesn't fail
This commit is contained in:
Sarjuuk
2021-02-18 21:11:08 +01:00
parent f5701e7979
commit 43778b01e7
4 changed files with 10 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ class DB
$interface = DbSimple_Generic::connect(self::createConnectSyntax($options));
if (!$interface || $interface->error)
die('Failed to connect to database.');
die('Failed to connect to database on index #'.$idx.".\n");
$interface->setErrorHandler(['DB', 'errorHandler']);
$interface->query('SET NAMES ?', 'utf8mb4');