Moodle设置:错误代码:缺少配置版本



我正在尝试使用postgresSQL在本地设置我的moodle站点。我在设置后收到此错误:

Config table does not contain version, can not continue, sorry.
More information about this error
It is usually not possible to recover from errors triggered during installation, you may need to create a new database or use a different database prefix if you want to retry the installation.
×Debug info:
Error code: missingconfigversion
×Stack trace:
line 495 of /lib/setuplib.php: moodle_exception thrown
line 287 of /admin/index.php: call to print_error()

数据库表mdl_config中的正确版本IS。我还删除了数据库并重新创建了两次,这似乎是我在任何地方都能找到的唯一建议。

我已打开所有调试设置,没有收到任何其他信息。

有没有其他解决方案可以解决这个问题?

如果表在那里,那么它可能是数据库权限或错误的数据库。

也许检查mdl_config的所有者与config.php中的$CFG->dbuser值相同

还要仔细检查$CFG->dbname是否为正确的数据库名称。

我大部分时间都在使用postgresql。这些是config.php 中的典型值

$CFG->dbtype    = 'pgsql';
$CFG->dblibrary = 'native';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'mydatabasename';
$CFG->dbuser    = 'mydatabaseuser';
$CFG->dbpass    = 'xxxxx';
$CFG->prefix    = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => '',
'dbsocket' => '',
);

最新更新