Quantcast
Channel: Live News for Yii Framework
Viewing all articles
Browse latest Browse all 3375

[Wiki] Yii Framework – Tips and Tricks - 2. ENABLE POSTGRESQL SUPPORT

$
0
0

Download

Download postgres from this URL: http://www.postgresql.at/download/

http://farm4.staticflickr.com/3793/9047428654_4085528826_o.png

Installation

Click on the installation file

http://farm6.staticflickr.com/5543/9045213287_39db2cee21_o.png

Then Click on the next buttons by providing proper selections

http://farm6.staticflickr.com/5348/9047446330_cd61a37057_o.png

DB Connection Configuration

Add this lines of code to establish the db connection in the main config file

'db'=>array(
            'connectionString' => 'pgsql:dbname=testt',
            'username' => 'postgres',
            'password' => 'xsysys',
        ),

Enabling Postgres Support in PHP

Also make sure PgSQL Support was enabled in the local system by executing phpinfo(), if not enable do the uncomment for the postgres sql support in php.ini file then restart the apache server

extension=php_pgsql.dll

You can make sure the postgressql support enabled by executing the phpinfo() function

echo phpinfo();

http://farm6.staticflickr.com/5448/9045235519_9513a88c03_o.png

Enabling PostgreSQL Support in PDO

Also make sure PgSQL Support was enabled in the local system by executing phpinfo(), if not enable do the uncomment for the postgres sql support in php.ini file then restart the apache server

extension=php_pdo_pgsql.dll

http://farm6.staticflickr.com/5343/9045239529_3daa08a06a_o.png


Viewing all articles
Browse latest Browse all 3375

Trending Articles