我使用的PHP是8.1.11,flarum是V1.7,MySQL是mysql Ver 8.0.33 for Linux on x86_64 (MySQL Community Server - GPL),没有使用docker,都是使用直接安装的方式,求助,下面是错误日志:
Flarum encountered a boot error (Illuminate\Database\QueryException)
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘db_flarum.tb_settings’ doesn’t exist (SQL: select value
, key
from tb_settings
)
thrown in /opt/flarum/vendor/illuminate/database/Connection.php on line 712
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘db_flarum.tb_settings’ doesn’t exist in /opt/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:82
Stack trace:
#0 /opt/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(82): PDO->prepare(‘select value
,…’, Array)
#1 /opt/flarum/vendor/illuminate/database/Connection.php(368): Doctrine\DBAL\Driver\PDOConnection->prepare(‘select value
,…’)
#2 /opt/flarum/vendor/illuminate/database/Connection.php(705): Illuminate\Database\Connection->Illuminate\Database{closure}(‘select value
,…’, Array)
#3 /opt/flarum/vendor/illuminate/database/Connection.php(672): Illuminate\Database\Connection->runQueryCallback(‘select value
,…’, Array, Object(Closure))
#4 /opt/flarum/vendor/illuminate/database/Connection.php(376): Illuminate\Database\Connection->run(‘select value
,…’, Array, Object(Closure))
#5 /opt/flarum/vendor/illuminate/database/Query/Builder.php(2414): Illuminate\Database\Connection->select(‘select value
,…’, Array, true)
#6 /opt/flarum/vendor/illuminate/database/Query/Builder.php(2626): Illuminate\Database\Query\Builder->runSelect()
#7 /opt/flarum/vendor/illuminate/database/Query/Builder.php(2936): Illuminate\Database\Query\Builder->Illuminate\Database\Query{closure}()
#8 /opt/flarum/vendor/illuminate/database/Query/Builder.php(2628): Illuminate\Database\Query\Builder->onceWithColumns(Array, Object(Closure))
#9 /opt/flarum/vendor/flarum/core/src/Settings/DatabaseSettingsRepository.php(25): Illuminate\Database\Query\Builder->pluck(‘value’, ‘key’)
#10 /opt/flarum/vendor/flarum/core/src/Settings/MemoryCacheSettingsRepository.php(30): Flarum\Settings\DatabaseSettingsRepository->all()
#11 /opt/flarum/vendor/flarum/core/src/Settings/MemoryCacheSettingsRepository.php(42): Flarum\Settings\MemoryCacheSettingsRepository->all()
#12 /opt/flarum/vendor/flarum/core/src/Settings/DefaultSettingsRepository.php(30): Flarum\Settings\MemoryCacheSettingsRepository->get(‘extensions_enab…’, NULL)
#13 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionManager.php(393): Flarum\Settings\DefaultSettingsRepository->get(‘extensions_enab…’)
#14 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionManager.php(139): Flarum\Extension\ExtensionManager->getEnabled()
#15 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionManager.php(363): Flarum\Extension\ExtensionManager->getExtensions()
#16 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionManager.php(381): Flarum\Extension\ExtensionManager->getEnabledExtensions()
#17 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend(Object(Illuminate\Container\Container))
#18 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}(Object(Flarum\Foundation\Application))
#19 /opt/flarum/vendor/flarum/core/src/Foundation/Application.php(329): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#20 /opt/flarum/vendor/flarum/core/src/Foundation/Application.php(270): Flarum\Foundation\Application->fireAppCallbacks(Array)
#21 /opt/flarum/vendor/flarum/core/src/Foundation/InstalledSite.php(151): Flarum\Foundation\Application->boot()
#22 /opt/flarum/vendor/flarum/core/src/Foundation/InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#23 /opt/flarum/vendor/flarum/core/src/Http/Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#24 /opt/flarum/vendor/flarum/core/src/Http/Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#25 /opt/flarum/public/index.php(26): Flarum\Http\Server->listen()
#26 {main}
Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘db_flarum.tb_settings’ doesn’t exist in /opt/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
Stack trace:
#0 /opt/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(87): Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))
#1 /opt/flarum/vendor/illuminate/database/Connection.php(368): Doctrine\DBAL\Driver\PDOConnection->prepare(‘select value
,…’)
#2 /opt/flarum/vendor/illuminate/database/Connection.php(705): Illuminate\Database\Connection->Illuminate\Database{closure}(‘select value
,…’, Array)
#3 /opt/flarum/vendor/illuminate/database/Connection.php(672): Illuminate\Database\Connection->runQueryCallback(‘select value
,…’, Array, Object(Closure))
#4 /opt/flarum/vendor/illuminate/database/Connection.php(376): Illuminate\Database\Connection->run(‘select value
,…’, Array, Object(Closure))
#5 /opt/flarum/vendor/illuminate/database/Query/Builder.php(2414): Illuminate\Database\Connection->select(‘select value
,…’, Array, true)
#6 /opt/flarum/vendor/illuminate/database/Query/Builder.php(2626): Illuminate\Database\Query\Builder->runSelect()
#7 /opt/flarum/vendor/illuminate/database/Query/Builder.php(2936): Illuminate\Database\Query\Builder->Illuminate\Database\Query{closure}()
#8 /opt/flarum/vendor/illuminate/database/Query/Builder.php(2628): Illuminate\Database\Query\Builder->onceWithColumns(Array, Object(Closure))
#9 /opt/flarum/vendor/flarum/core/src/Settings/DatabaseSettingsRepository.php(25): Illuminate\Database\Query\Builder->pluck(‘value’, ‘key’)
#10 /opt/flarum/vendor/flarum/core/src/Settings/MemoryCacheSettingsRepository.php(30): Flarum\Settings\DatabaseSettingsRepository->all()
#11 /opt/flarum/vendor/flarum/core/src/Settings/MemoryCacheSettingsRepository.php(42): Flarum\Settings\MemoryCacheSettingsRepository->all()
#12 /opt/flarum/vendor/flarum/core/src/Settings/DefaultSettingsRepository.php(30): Flarum\Settings\MemoryCacheSettingsRepository->get(‘extensions_enab…’, NULL)
#13 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionManager.php(393): Flarum\Settings\DefaultSettingsRepository->get(‘extensions_enab…’)
#14 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionManager.php(139): Flarum\Extension\ExtensionManager->getEnabled()
#15 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionManager.php(363): Flarum\Extension\ExtensionManager->getExtensions()
#16 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionManager.php(381): Flarum\Extension\ExtensionManager->getEnabledExtensions()
#17 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend(Object(Illuminate\Container\Container))
#18 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}(Object(Flarum\Foundation\Application))
#19 /opt/flarum/vendor/flarum/core/src/Foundation/Application.php(329): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#20 /opt/flarum/vendor/flarum/core/src/Foundation/Application.php(270): Flarum\Foundation\Application->fireAppCallbacks(Array)
#21 /opt/flarum/vendor/flarum/core/src/Foundation/InstalledSite.php(151): Flarum\Foundation\Application->boot()
#22 /opt/flarum/vendor/flarum/core/src/Foundation/InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#23 /opt/flarum/vendor/flarum/core/src/Http/Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#24 /opt/flarum/vendor/flarum/core/src/Http/Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#25 /opt/flarum/public/index.php(26): Flarum\Http\Server->listen()
#26 {main}
Next Illuminate\Database\QueryException: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘db_flarum.tb_settings’ doesn’t exist (SQL: select value
, key
from tb_settings
) in /opt/flarum/vendor/illuminate/database/Connection.php:712
Stack trace:
#0 /opt/flarum/vendor/illuminate/database/Connection.php(672): Illuminate\Database\Connection->runQueryCallback(‘select value
,…’, Array, Object(Closure))
#1 /opt/flarum/vendor/illuminate/database/Connection.php(376): Illuminate\Database\Connection->run(‘select value
,…’, Array, Object(Closure))
#2 /opt/flarum/vendor/illuminate/database/Query/Builder.php(2414): Illuminate\Database\Connection->select(‘select value
,…’, Array, true)
#3 /opt/flarum/vendor/illuminate/database/Query/Builder.php(2626): Illuminate\Database\Query\Builder->runSelect()
#4 /opt/flarum/vendor/illuminate/database/Query/Builder.php(2936): Illuminate\Database\Query\Builder->Illuminate\Database\Query{closure}()
#5 /opt/flarum/vendor/illuminate/database/Query/Builder.php(2628): Illuminate\Database\Query\Builder->onceWithColumns(Array, Object(Closure))
#6 /opt/flarum/vendor/flarum/core/src/Settings/DatabaseSettingsRepository.php(25): Illuminate\Database\Query\Builder->pluck(‘value’, ‘key’)
#7 /opt/flarum/vendor/flarum/core/src/Settings/MemoryCacheSettingsRepository.php(30): Flarum\Settings\DatabaseSettingsRepository->all()
#8 /opt/flarum/vendor/flarum/core/src/Settings/MemoryCacheSettingsRepository.php(42): Flarum\Settings\MemoryCacheSettingsRepository->all()
#9 /opt/flarum/vendor/flarum/core/src/Settings/DefaultSettingsRepository.php(30): Flarum\Settings\MemoryCacheSettingsRepository->get(‘extensions_enab…’, NULL)
#10 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionManager.php(393): Flarum\Settings\DefaultSettingsRepository->get(‘extensions_enab…’)
#11 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionManager.php(139): Flarum\Extension\ExtensionManager->getEnabled()
#12 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionManager.php(363): Flarum\Extension\ExtensionManager->getExtensions()
#13 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionManager.php(381): Flarum\Extension\ExtensionManager->getEnabledExtensions()
#14 /opt/flarum/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend(Object(Illuminate\Container\Container))
#15 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}(Object(Flarum\Foundation\Application))
#16 /opt/flarum/vendor/flarum/core/src/Foundation/Application.php(329): call_user_func(Object(Closure), Object(Flarum\Foundation\Application))
#17 /opt/flarum/vendor/flarum/core/src/Foundation/Application.php(270): Flarum\Foundation\Application->fireAppCallbacks(Array)
#18 /opt/flarum/vendor/flarum/core/src/Foundation/InstalledSite.php(151): Flarum\Foundation\Application->boot()
#19 /opt/flarum/vendor/flarum/core/src/Foundation/InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#20 /opt/flarum/vendor/flarum/core/src/Http/Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#21 /opt/flarum/vendor/flarum/core/src/Http/Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#22 /opt/flarum/public/index.php(26): Flarum\Http\Server->listen()
#23 {main}