I have tried to connect PostgreSQL with Yii but is is showing
CDbConnection failed to open the DB connection.
In log it is showing
error exception.CDbException
could not find driver
My code
'db'=>array(
'tablePrefix'=>'',
'connectionString' => 'pgsql:host=localhost;port=5432;dbname=postgres',
'username'=>'postgres',
'password'=>'postgres',
'charset'=>'UTF8',
),
Resolved issue…by adding
to httpd.conf file. Now phpinfo() is showing pgsql PDO.
thanks…