luceos update your config.php with the new database credentials. Your user sibert has no access to the database.
Flarum encountered a boot error. Details have been logged to the Flarum log file.
The log file:
2023-09-16 18:16:26] flarum.ERROR: PDOException: SQLSTATE[HY000] [1049] Unknown database 'flarum' in /home/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40
Stack trace:
#0 /home/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(40): 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(45): Illuminate\Database\Connectors\Connector->createPdoConnection()
#3 /home/flarum/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection()
#4 /home/flarum/vendor/illuminate/database/Connectors/ConnectionFactory.php(184): Illuminate\Database\Connectors\MySqlConnector->connect()
#5 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#6 /home/flarum/vendor/illuminate/database/Connection.php(1064): call_user_func()
#7 /home/flarum/vendor/illuminate/database/Connection.php(1014): Illuminate\Database\Connection->getPdo()
#8 /home/flarum/vendor/illuminate/database/Connection.php(994): Illuminate\Database\Connection->getDoctrineConnection()
#9 /home/flarum/vendor/flarum/core/src/Database/Migrator.php(69): Illuminate\Database\Connection->getDoctrineSchemaManager()
#10 [internal function]: Flarum\Database\Migrator->__construct()
#11 /home/flarum/vendor/illuminate/container/Container.php(917): ReflectionClass->newInstanceArgs()
#12 /home/flarum/vendor/illuminate/container/Container.php(758): Illuminate\Container\Container->build()
#13 /home/flarum/vendor/illuminate/container/Container.php(694): Illuminate\Container\Container->resolve()
#14 /home/flarum/vendor/illuminate/container/Container.php(1027): Illuminate\Container\Container->make()
#15 /home/flarum/vendor/illuminate/container/Container.php(947): Illuminate\Container\Container->resolveClass()
#16 /home/flarum/vendor/illuminate/container/Container.php(908): Illuminate\Container\Container->resolveDependencies()
#17 /home/flarum/vendor/illuminate/container/Container.php(292): Illuminate\Container\Container->build()
#18 /home/flarum/vendor/illuminate/container/Container.php(873): Illuminate\Container\Container->Illuminate\Container\{closure}()
#19 /home/flarum/vendor/illuminate/container/Container.php(758): Illuminate\Container\Container->build()
#20 /home/flarum/vendor/illuminate/container/Container.php(694): Illuminate\Container\Container->resolve()
#21 /home/flarum/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(31): Illuminate\Container\Container->make()
#22 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension\{closure}()
#23 /home/flarum/vendor/flarum/core/src/Foundation/Application.php(329): call_user_func()
#24 /home/flarum/vendor/flarum/core/src/Foundation/Application.php(270): Flarum\Foundation\Application->fireAppCallbacks()
#25 /home/flarum/vendor/flarum/core/src/Foundation/InstalledSite.php(151): Flarum\Foundation\Application->boot()
#26 /home/flarum/vendor/flarum/core/src/Foundation/InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#27 /home/flarum/vendor/flarum/core/src/Http/Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#28 /home/flarum/vendor/flarum/core/src/Http/Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#29 /home/flarum/public/index.php(26): Flarum\Http\Server->listen()
#30 {main}
and the config.php
<?php return array (
'debug' => false,
'database' =>
array (
'driver' => 'mysql',
'host' => '127.0.0.1',
'port' => 3306,
'database' => 'flarum',
'username' => 'sibert',
'password' => 'password',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => false,
'engine' => NULL,
'prefix_indexes' => true,
),
'url' => 'https://forum.go4webdev.org',
'paths' =>
array (
'api' => 'api',
'admin' => 'admin',
),
'headers' =>
array (
'poweredByHeader' => true,
'referrerPolicy' => 'same-origin',
),
);
and the flarum database is present.
What am I doing wrong?