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