mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Setup/DB
* connect to db after successful setup so siteconfig doesn't fail
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user