在取消「延長= php_pdo_pgsql.dll」和「延長= php_pgsql.dll」我不斷收到錯誤PGSQL擴展Yii中仍然即使在php.ini
CDbConnection failed to open the DB connection: could not find driver
後「警告」
即使在取消「後延= php_pdo_pgsql.dll 「和」 延長= php_pgsql.dll並重新啓動WAMP。
的Yii的要求檢查仍顯示PDO PostgreSQL擴展爲 「警告」。
這裏是我的代碼片段
'db'=>array(
'tablePrefix' => '',
'connectionString' => 'pgsql:host=localhost;port=5432;dbname=myDB',
'username'=>'postgres',
'password'=>'postgresql',
'charset'=>'UTF8',
),
我使用
的Yii 1.1.14 WAMP 2.4 PHP 5.4.12
http://stackoverflow.com/questions/551734/php-not-loading-php-pgsql-dll-on-windows –
替代解釋http://blog.lysender.com/2010/08/php-和PostgreSQL相關的窗口/ – topher