CDbConnection无法打开数据库连接:在安装时找不到驱动程序

时间:2013-12-19 07:28:53

标签: linux xampp driver survey

您好我正试图在Linux上的xampp上设置limesurvey。我希望安装程序在Windows机器上使用msssql服务器。我已成功设置xampp并修改了lime调查的application / config文件夹中的config.php指向sql server。当我尝试启动http://host.name.com:8080/limesurvey/admin时,会出现错误,如下所示

CDbConnection无法打开数据库连接:找不到驱动程序

/opt/lampp/htdocs/limesurvey/framework/db/CDbConnection.php(382)

370 throw new CDbException('CDbConnection.connectionString cannot be empty.');
371 try
372 {
373 Yii::trace('Opening DB connection','system.db.CDbConnection');
374 $this->_pdo=$this->createPdoInstance();
375 $this->initConnection($this->_pdo);
376 $this->_active=true;
377 }
378 catch(PDOException $e)
379 {
380 if(YII_DEBUG)
381 {
382 throw new CDbException('CDbConnection failed to open the DB connection: '.
383 $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
384 }
385 else
386 {
387 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
388 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
389 }
390 }
391 }
392 }

0 个答案:

没有答案