V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yszyy
V2EX  ›  数据库

安装 mediawiki-1.33.0 过程中 报错

  •  
  •   yszyy · 2019-09-10 16:24:30 +08:00 · 1572 次点击
    这是一个创建于 1688 天前的主题,其中的信息可能已经有所发展或是发生改变。

    安装 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}

    2 条回复    2019-09-10 21:51:51 +08:00
    saulshao
        1
    saulshao  
       2019-09-10 17:42:37 +08:00
    这个是说你的数据库连接出错了,请检查 localsettings.php 中的配置值
    feiffy
        2
    feiffy  
       2019-09-10 21:51:51 +08:00 via Android
    A non-empty prefix must end with "_".,设置数据库前缀的时候要以 _ 结尾
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4634 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 10:04 · PVG 18:04 · LAX 03:04 · JFK 06:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.