安装 mediawiki-1.33.0 过程中 报错 求问怎么解决
系统 宝塔 liunx 免费版 5.9.1
服务器 liluohost 香港 KVM VPS 2G 套餐
错误代码
Warning: putenv() has been disabled for security reasons in /www/wwwroot/wiki.我的站.space/includes/Setup.php on line 134 [6cd75134e603f045d40d591d] /mw-config/index.php?page=DBConnect InvalidArgumentException from line 58 of /www/wwwroot/wiki.我的站.space/includes/libs/rdbms/database/domain/DatabaseDomain.php: A non-empty prefix must end with "_".
Backtrace:
#0 /www/wwwroot/wiki.我的站.space/includes/libs/rdbms/database/Database.php(333): Wikimedia\Rdbms\DatabaseDomain->__construct(NULL, NULL, string) #1 /www/wwwroot/wiki.我的站.space/includes/libs/rdbms/database/DatabaseMysqlBase.php(114): Wikimedia\Rdbms\Database->__construct(array) #2 /www/wwwroot/wiki.我的站.space/includes/libs/rdbms/database/Database.php(471): Wikimedia\Rdbms\DatabaseMysqlBase->__construct(array) #3 /www/wwwroot/wiki.我的站.space/includes/installer/MysqlInstaller.php(151): Wikimedia\Rdbms\Database::factory(string, array) #4 /www/wwwroot/wiki.我的站.space/includes/installer/DatabaseInstaller.php(186): MysqlInstaller->openConnection() #5 /www/wwwroot/wiki.我的站.space/includes/installer/MysqlInstaller.php(126): DatabaseInstaller->getConnection() #6 /www/wwwroot/wiki.我的站.space/includes/installer/WebInstallerDBConnect.php(118): MysqlInstaller->submitConnectForm() #7 /www/wwwroot/wiki.我的站.space/includes/installer/WebInstallerDBConnect.php(34): WebInstallerDBConnect->submit() #8 /www/wwwroot/wiki.我的站.space/includes/installer/WebInstaller.php(264): WebInstallerDBConnect->execute() #9 /www/wwwroot/wiki.我的站.space/mw-config/index.php(80): WebInstaller->execute(array) #10 /www/wwwroot/wiki.我的站.space/mw-config/index.php(38): wfInstallerMain() #11 {main}
1
saulshao 2019-09-10 17:42:37 +08:00
这个是说你的数据库连接出错了,请检查 localsettings.php 中的配置值
|
2
feiffy 2019-09-10 21:51:51 +08:00 via Android
A non-empty prefix must end with "_".,设置数据库前缀的时候要以 _ 结尾
|