Flarum encountered a boot error (Doctrine\DBAL\Driver\PDO\Exception)
SQLSTATE[HY000] [2002] Connection refused
thrown in /home/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php on line 18
PDOException: SQLSTATE[HY000] [2002] Connection refused in /home/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:38
Stack trace:
#0 /home/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(38): PDO->__construct()
#1 /home/flarum/vendor/illuminate/database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct()
#2 /home/flarum/vendor/illuminate/database/Connectors/Connector.php(100): Illuminate\Database\Connectors\Connector->createPdoConnection()
#3 /home/flarum/vendor/illuminate/database/Connectors/Connector.php(50): Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection()
#4 /home/flarum/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection()
#5 /home/flarum/vendor/illuminate/database/Connectors/ConnectionFactory.php(182): Illuminate\Database\Connectors\MySqlConnector->connect()
#6 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#7 /home/flarum/vendor/illuminate/database/Connection.php(924): call_user_func()
#8 /home/flarum/vendor/illuminate/database/Connection.php(906): Illuminate\Database\Connection->getPdo()
#9 /home/flarum/vendor/illuminate/database/Connection.php(892): Illuminate\Database\Connection->getDoctrineConnection()
#10 /home/flarum/vendor/flarum/core/src/Database/Migrator.php(67): Illuminate\Database\Connection->getDoctrineSchemaManager()
#11 [internal function]: Flarum\Database\Migrator->__construct()
#12 /home/flarum/vendor/illuminate/container/Container.php(843): ReflectionClass->newInstanceArgs()
#13 /home/flarum/vendor/illuminate/container/Container.php(681): Illuminate\Container\Container->build()
#14 /home/flarum/vendor/illuminate/container/Container.php(629): Illuminate\Container\Container->resolve()
#15 /home/flarum/vendor/illuminate/container/Container.php(945): Illuminate\Container\Container->make()
#16 /home/flarum/vendor/illuminate/container/Container.php(873): Illuminate\Container\Container->resolveClass()
#17 /home/flarum/vendor/illuminate/container/Container.php(834): Illuminate\Container\Container->resolveDependencies()
#18 /home/flarum/vendor/illuminate/container/Container.php(261): Illuminate\Container\Container->build()
#19 /home/flarum/vendor/illuminate/container/Container.php(799): Illuminate\Container\Container->Illuminate\Container\{closure}()
#20 /home/flarum/vendor/illuminate/container/Container.php(681): Illuminate\Container\Container->build()
#21 /home/flarum/vendor/illuminate/container/Container.php(629): Illuminate\Container\Container->resolve()
#22 /home/flarum/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(30): Illuminate\Container\Container->make()
#23 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension\{closure}()
#24 /home/flarum/vendor/flarum/core/src/Foundation/Application.php(322): call_user_func()
#25 /home/flarum/vendor/flarum/core/src/Foundation/Application.php(263): Flarum\Foundation\Application->fireAppCallbacks()
#26 /home/flarum/vendor/flarum/core/src/Foundation/InstalledSite.php(148): Flarum\Foundation\Application->boot()
#27 /home/flarum/vendor/flarum/core/src/Foundation/InstalledSite.php(81): Flarum\Foundation\InstalledSite->bootLaravel()
#28 /home/flarum/vendor/flarum/core/src/Http/Server.php(56): Flarum\Foundation\InstalledSite->bootApp()
#29 /home/flarum/vendor/flarum/core/src/Http/Server.php(33): Flarum\Http\Server->safelyBootAndGetHandler()
#30 /home/flarum/public/index.php(26): Flarum\Http\Server->listen()
#31 {main}

Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [2002] Connection refused in /home/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
Stack trace:
#0 /home/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(42): Doctrine\DBAL\Driver\PDO\Exception::new()
#1 /home/flarum/vendor/illuminate/database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct()
#2 /home/flarum/vendor/illuminate/database/Connectors/Connector.php(100): Illuminate\Database\Connectors\Connector->createPdoConnection()
#3 /home/flarum/vendor/illuminate/database/Connectors/Connector.php(50): Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection()
#4 /home/flarum/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection()
#5 /home/flarum/vendor/illuminate/database/Connectors/ConnectionFactory.php(182): Illuminate\Database\Connectors\MySqlConnector->connect()
#6 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#7 /home/flarum/vendor/illuminate/database/Connection.php(924): call_user_func()
#8 /home/flarum/vendor/illuminate/database/Connection.php(906): Illuminate\Database\Connection->getPdo()
#9 /home/flarum/vendor/illuminate/database/Connection.php(892): Illuminate\Database\Connection->getDoctrineConnection()
#10 /home/flarum/vendor/flarum/core/src/Database/Migrator.php(67): Illuminate\Database\Connection->getDoctrineSchemaManager()
#11 [internal function]: Flarum\Database\Migrator->__construct()
#12 /home/flarum/vendor/illuminate/container/Container.php(843): ReflectionClass->newInstanceArgs()
#13 /home/flarum/vendor/illuminate/container/Container.php(681): Illuminate\Container\Container->build()
#14 /home/flarum/vendor/illuminate/container/Container.php(629): Illuminate\Container\Container->resolve()
#15 /home/flarum/vendor/illuminate/container/Container.php(945): Illuminate\Container\Container->make()
#16 /home/flarum/vendor/illuminate/container/Container.php(873): Illuminate\Container\Container->resolveClass()
#17 /home/flarum/vendor/illuminate/container/Container.php(834): Illuminate\Container\Container->resolveDependencies()
#18 /home/flarum/vendor/illuminate/container/Container.php(261): Illuminate\Container\Container->build()
#19 /home/flarum/vendor/illuminate/container/Container.php(799): Illuminate\Container\Container->Illuminate\Container\{closure}()
#20 /home/flarum/vendor/illuminate/container/Container.php(681): Illuminate\Container\Container->build()
#21 /home/flarum/vendor/illuminate/container/Container.php(629): Illuminate\Container\Container->resolve()
#22 /home/flarum/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(30): Illuminate\Container\Container->make()
#23 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension\{closure}()
#24 /home/flarum/vendor/flarum/core/src/Foundation/Application.php(322): call_user_func()
#25 /home/flarum/vendor/flarum/core/src/Foundation/Application.php(263): Flarum\Foundation\Application->fireAppCallbacks()
#26 /home/flarum/vendor/flarum/core/src/Foundation/InstalledSite.php(148): Flarum\Foundation\Application->boot()
#27 /home/flarum/vendor/flarum/core/src/Foundation/InstalledSite.php(81): Flarum\Foundation\InstalledSite->bootLaravel()
#28 /home/flarum/vendor/flarum/core/src/Http/Server.php(56): Flarum\Foundation\InstalledSite->bootApp()
#29 /home/flarum/vendor/flarum/core/src/Http/Server.php(33): Flarum\Http\Server->safelyBootAndGetHandler()
#30 /home/flarum/public/index.php(26): Flarum\Http\Server->listen()
#31 {main}