将impresspages安装到localhost - 数据库连接问题

时间:2014-08-27 22:27:27

标签: php impresspages

当我尝试在数据库安装中的localhost上安装impresspages时,我看到了:

  

无法连接数据库。

我尝试通过在托管上安装它(它的安装没有问题)来解决这个问题,然后将其传输到localhost与所有数据库,我编辑配置文件。当我到主页时,我看到了这个:

  

致命错误:未捕获的异常' Ip \ Exception \ Db'在C:\ www \ Apache2 \ htdocs \ ip \ Ip \ ServiceLocator.php:258堆栈跟踪:#0 C:\ www \ Apache2 \ htdocs \ ip \ Ip \ Db.php(28):Ip \ Db-> getConnection()#1 C:\ www \ Apache2 \ htdocs \ ip \ Ip \ ServiceLocator.php(258):Ip \ Db-> __ construct()#2 C:\ www \ Apache2 \ htdocs \ ip \ Ip \ ServiceLocator .php(226):Ip \ ServiceLocator :: loadService(' db')#3 C:\ www \ Apache2 \ htdocs \ ip \ Ip \ Functions.php(379):Ip \ ServiceLocator :: db ()#4 C:\ www \ Apache2 \ htdocs \ ip \ Ip \ Internal \ Plugins \ Model.php(316):ipDb()#5 C:\ www \ Apache2 \ htdocs \ ip \ Ip \ Internal \ Plugins \ Service.php(9):Ip \ Internal \ Plugins \ Model :: getActivePluginNames()#6 C:\ www \ Apache2 \ htdocs \ ip \ Ip \ Dispatcher.php(140):Ip \ Internal \ Plugins \ Service :: getActivePluginNames()#7 C:\ www \ Apache2 \ htdocs \ ip \ Ip \ Application.php(153):Ip \ Dispatcher-> _bindApplicationEvents()#8 C:\ www \ Apache2 \ htdocs \ ip \ Ip \ Application .php(319):Ip \ Application-> _handleOnlyRequest(Object(Ip \ Request),Array,false)#9 C:\ www \ Apache2 \ htdocs \ ip \ Ip \ Application.php(413):Ip \ Application - >的handleRequest(对象(IP \再任务),第258行的C:\ www \ Apache2 \ htdocs \ ip \ Ip \ ServiceLocator.php中的Ar

1 个答案:

答案 0 :(得分:0)

看起来没有安装或启用PHP的MySQL扩展。有关详细信息,请参阅http://php.net/manual/en/mysql.installation.php

相关问题