Skip to content
/ yiidb2 Public
forked from edgardmessias/yiidb2

Support the DB2 database in Yii Framework

Notifications You must be signed in to change notification settings

airmoi/yiidb2

 
 

Repository files navigation

YiiDB2

Support the DB2 database in Yii Framework

Requirements

  • PHP module pdo_ibm or pdo_odbc;
  • DB2 Client installed

Installation

  • Install yiidb2 extension
  • Extract the release file under protected/extensions
  • In your protected/config/main.php, add the following:
<?php
...
  'components' => array(
  ...
    'db' => array(
      'connectionString' => 'ibm:DRIVER={IBM DB2 ODBC DRIVER};DATABASE=database;HOSTNAME=hostname;PORT=port;PROTOCOL=TCPIP;',
//or//'connectionString' => 'odbc:DRIVER={IBM DB2 ODBC DRIVER};DATABASE=database;HOSTNAME=hostname;PORT=port;PROTOCOL=TCPIP;',
      'username' => 'username',
      'password' => 'password',
      'class' => 'ext.yiidb2.CIbmDB2Connection',
    ),
    ...
  ),
...

About

Support the DB2 database in Yii Framework

Resources

Stars

Watchers

Forks

Packages

No packages published