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

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