Flarum encountered a boot error (Illuminate\Database\QueryException)
SQLSTATE[HY000] [2002] Connection refused (SQL: select `value`, `key` from `flsettings`)
thrown in /var/www/html/vendor/illuminate/database/Connection.php on line 669
PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:38
Stack trace:
#0 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(38): PDO->__construct()
#1 /var/www/html/vendor/illuminate/database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct()
#2 /var/www/html/vendor/illuminate/database/Connectors/Connector.php(100): Illuminate\Database\Connectors\Connector->createPdoConnection()
#3 /var/www/html/vendor/illuminate/database/Connectors/Connector.php(50): Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection()
#4 /var/www/html/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection()
#5 /var/www/html/vendor/illuminate/database/Connectors/ConnectionFactory.php(182): Illuminate\Database\Connectors\MySqlConnector->connect()
#6 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#7 /var/www/html/vendor/illuminate/database/Connection.php(924): call_user_func()
#8 /var/www/html/vendor/illuminate/database/Connection.php(959): Illuminate\Database\Connection->getPdo()
#9 /var/www/html/vendor/illuminate/database/Connection.php(404): Illuminate\Database\Connection->getReadPdo()
#10 /var/www/html/vendor/illuminate/database/Connection.php(330): Illuminate\Database\Connection->getPdoForSelect()
#11 /var/www/html/vendor/illuminate/database/Connection.php(662): Illuminate\Database\Connection->Illuminate\Database\{closure}()
#12 /var/www/html/vendor/illuminate/database/Connection.php(743): Illuminate\Database\Connection->runQueryCallback()
#13 /var/www/html/vendor/illuminate/database/Connection.php(723): Illuminate\Database\Connection->tryAgainIfCausedByLostConnection()
#14 /var/www/html/vendor/illuminate/database/Connection.php(632): Illuminate\Database\Connection->handleQueryException()
#15 /var/www/html/vendor/illuminate/database/Connection.php(338): Illuminate\Database\Connection->run()
#16 /var/www/html/vendor/illuminate/database/Query/Builder.php(2149): Illuminate\Database\Connection->select()
#17 /var/www/html/vendor/illuminate/database/Query/Builder.php(2301): Illuminate\Database\Query\Builder->runSelect()
#18 /var/www/html/vendor/illuminate/database/Query/Builder.php(2609): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
#19 /var/www/html/vendor/illuminate/database/Query/Builder.php(2303): Illuminate\Database\Query\Builder->onceWithColumns()
#20 /var/www/html/vendor/flarum/core/src/Settings/DatabaseSettingsRepository.php(25): Illuminate\Database\Query\Builder->pluck()
#21 /var/www/html/vendor/flarum/core/src/Settings/MemoryCacheSettingsRepository.php(30): Flarum\Settings\DatabaseSettingsRepository->all()
#22 /var/www/html/vendor/flarum/core/src/Settings/MemoryCacheSettingsRepository.php(42): Flarum\Settings\MemoryCacheSettingsRepository->all()
#23 /var/www/html/vendor/flarum/core/src/Extension/ExtensionManager.php(345): Flarum\Settings\MemoryCacheSettingsRepository->get()
#24 /var/www/html/vendor/flarum/core/src/Extension/ExtensionManager.php(317): Flarum\Extension\ExtensionManager->getEnabled()
#25 /var/www/html/vendor/flarum/core/src/Extension/ExtensionManager.php(333): Flarum\Extension\ExtensionManager->getEnabledExtensions()
#26 /var/www/html/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(30): Flarum\Extension\ExtensionManager->extend()
#27 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension\{closure}()
#28 /var/www/html/vendor/flarum/core/src/Foundation/Application.php(322): call_user_func()
#29 /var/www/html/vendor/flarum/core/src/Foundation/Application.php(263): Flarum\Foundation\Application->fireAppCallbacks()
#30 /var/www/html/vendor/flarum/core/src/Foundation/InstalledSite.php(148): Flarum\Foundation\Application->boot()
#31 /var/www/html/vendor/flarum/core/src/Foundation/InstalledSite.php(81): Flarum\Foundation\InstalledSite->bootLaravel()
#32 /var/www/html/vendor/flarum/core/src/Http/Server.php(56): Flarum\Foundation\InstalledSite->bootApp()
#33 /var/www/html/vendor/flarum/core/src/Http/Server.php(33): Flarum\Http\Server->safelyBootAndGetHandler()
#34 /var/www/html/public/index.php(26): Flarum\Http\Server->listen()
#35 {main}

Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
Stack trace:
#0 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(42): Doctrine\DBAL\Driver\PDO\Exception::new()
#1 /var/www/html/vendor/illuminate/database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct()
#2 /var/www/html/vendor/illuminate/database/Connectors/Connector.php(100): Illuminate\Database\Connectors\Connector->createPdoConnection()
#3 /var/www/html/vendor/illuminate/database/Connectors/Connector.php(50): Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection()
#4 /var/www/html/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection()
#5 /var/www/html/vendor/illuminate/database/Connectors/ConnectionFactory.php(182): Illuminate\Database\Connectors\MySqlConnector->connect()
#6 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#7 /var/www/html/vendor/illuminate/database/Connection.php(924): call_user_func()
#8 /var/www/html/vendor/illuminate/database/Connection.php(959): Illuminate\Database\Connection->getPdo()
#9 /var/www/html/vendor/illuminate/database/Connection.php(404): Illuminate\Database\Connection->getReadPdo()
#10 /var/www/html/vendor/illuminate/database/Connection.php(330): Illuminate\Database\Connection->getPdoForSelect()
#11 /var/www/html/vendor/illuminate/database/Connection.php(662): Illuminate\Database\Connection->Illuminate\Database\{closure}()
#12 /var/www/html/vendor/illuminate/database/Connection.php(743): Illuminate\Database\Connection->runQueryCallback()
#13 /var/www/html/vendor/illuminate/database/Connection.php(723): Illuminate\Database\Connection->tryAgainIfCausedByLostConnection()
#14 /var/www/html/vendor/illuminate/database/Connection.php(632): Illuminate\Database\Connection->handleQueryException()
#15 /var/www/html/vendor/illuminate/database/Connection.php(338): Illuminate\Database\Connection->run()
#16 /var/www/html/vendor/illuminate/database/Query/Builder.php(2149): Illuminate\Database\Connection->select()
#17 /var/www/html/vendor/illuminate/database/Query/Builder.php(2301): Illuminate\Database\Query\Builder->runSelect()
#18 /var/www/html/vendor/illuminate/database/Query/Builder.php(2609): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
#19 /var/www/html/vendor/illuminate/database/Query/Builder.php(2303): Illuminate\Database\Query\Builder->onceWithColumns()
#20 /var/www/html/vendor/flarum/core/src/Settings/DatabaseSettingsRepository.php(25): Illuminate\Database\Query\Builder->pluck()
#21 /var/www/html/vendor/flarum/core/src/Settings/MemoryCacheSettingsRepository.php(30): Flarum\Settings\DatabaseSettingsRepository->all()
#22 /var/www/html/vendor/flarum/core/src/Settings/MemoryCacheSettingsRepository.php(42): Flarum\Settings\MemoryCacheSettingsRepository->all()
#23 /var/www/html/vendor/flarum/core/src/Extension/ExtensionManager.php(345): Flarum\Settings\MemoryCacheSettingsRepository->get()
#24 /var/www/html/vendor/flarum/core/src/Extension/ExtensionManager.php(317): Flarum\Extension\ExtensionManager->getEnabled()
#25 /var/www/html/vendor/flarum/core/src/Extension/ExtensionManager.php(333): Flarum\Extension\ExtensionManager->getEnabledExtensions()
#26 /var/www/html/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(30): Flarum\Extension\ExtensionManager->extend()
#27 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension\{closure}()
#28 /var/www/html/vendor/flarum/core/src/Foundation/Application.php(322): call_user_func()
#29 /var/www/html/vendor/flarum/core/src/Foundation/Application.php(263): Flarum\Foundation\Application->fireAppCallbacks()
#30 /var/www/html/vendor/flarum/core/src/Foundation/InstalledSite.php(148): Flarum\Foundation\Application->boot()
#31 /var/www/html/vendor/flarum/core/src/Foundation/InstalledSite.php(81): Flarum\Foundation\InstalledSite->bootLaravel()
#32 /var/www/html/vendor/flarum/core/src/Http/Server.php(56): Flarum\Foundation\InstalledSite->bootApp()
#33 /var/www/html/vendor/flarum/core/src/Http/Server.php(33): Flarum\Http\Server->safelyBootAndGetHandler()
#34 /var/www/html/public/index.php(26): Flarum\Http\Server->listen()
#35 {main}

Next Illuminate\Database\QueryException: SQLSTATE[HY000] [2002] Connection refused (SQL: select `value`, `key` from `flsettings`) in /var/www/html/vendor/illuminate/database/Connection.php:669
Stack trace:
#0 /var/www/html/vendor/illuminate/database/Connection.php(743): Illuminate\Database\Connection->runQueryCallback()
#1 /var/www/html/vendor/illuminate/database/Connection.php(723): Illuminate\Database\Connection->tryAgainIfCausedByLostConnection()
#2 /var/www/html/vendor/illuminate/database/Connection.php(632): Illuminate\Database\Connection->handleQueryException()
#3 /var/www/html/vendor/illuminate/database/Connection.php(338): Illuminate\Database\Connection->run()
#4 /var/www/html/vendor/illuminate/database/Query/Builder.php(2149): Illuminate\Database\Connection->select()
#5 /var/www/html/vendor/illuminate/database/Query/Builder.php(2301): Illuminate\Database\Query\Builder->runSelect()
#6 /var/www/html/vendor/illuminate/database/Query/Builder.php(2609): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
#7 /var/www/html/vendor/illuminate/database/Query/Builder.php(2303): Illuminate\Database\Query\Builder->onceWithColumns()
#8 /var/www/html/vendor/flarum/core/src/Settings/DatabaseSettingsRepository.php(25): Illuminate\Database\Query\Builder->pluck()
#9 /var/www/html/vendor/flarum/core/src/Settings/MemoryCacheSettingsRepository.php(30): Flarum\Settings\DatabaseSettingsRepository->all()
#10 /var/www/html/vendor/flarum/core/src/Settings/MemoryCacheSettingsRepository.php(42): Flarum\Settings\MemoryCacheSettingsRepository->all()
#11 /var/www/html/vendor/flarum/core/src/Extension/ExtensionManager.php(345): Flarum\Settings\MemoryCacheSettingsRepository->get()
#12 /var/www/html/vendor/flarum/core/src/Extension/ExtensionManager.php(317): Flarum\Extension\ExtensionManager->getEnabled()
#13 /var/www/html/vendor/flarum/core/src/Extension/ExtensionManager.php(333): Flarum\Extension\ExtensionManager->getEnabledExtensions()
#14 /var/www/html/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(30): Flarum\Extension\ExtensionManager->extend()
#15 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension\{closure}()
#16 /var/www/html/vendor/flarum/core/src/Foundation/Application.php(322): call_user_func()
#17 /var/www/html/vendor/flarum/core/src/Foundation/Application.php(263): Flarum\Foundation\Application->fireAppCallbacks()
#18 /var/www/html/vendor/flarum/core/src/Foundation/InstalledSite.php(148): Flarum\Foundation\Application->boot()
#19 /var/www/html/vendor/flarum/core/src/Foundation/InstalledSite.php(81): Flarum\Foundation\InstalledSite->bootLaravel()
#20 /var/www/html/vendor/flarum/core/src/Http/Server.php(56): Flarum\Foundation\InstalledSite->bootApp()
#21 /var/www/html/vendor/flarum/core/src/Http/Server.php(33): Flarum\Http\Server->safelyBootAndGetHandler()
#22 /var/www/html/public/index.php(26): Flarum\Http\Server->listen()
#23 {main}