yiidb2 Support the IBM DB2 database in Yii Framework

YiiDB2

  1. Requirements
  2. Version
  3. Installation
  4. Resources

Support the DB2 database in Yii Framework

Donation: Pagseguro, PayPal

Requirements

  • PHP module pdo_ibm; (for ibm_pdo, see GitHub)
  • DB2 Client installed

Version

  • For pdo_ibm or pdo_odbc, use yiidb2-*.zip
  • For ibm_db2, use yiidb2-ibm_db2-*.zip

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;',
      'username' => 'username',
      'password' => 'password',
      'class' => 'ext.yiidb2.CIbmDB2Connection',
    ),
    ...
  ),
...

Resources

3 0
5 followers
884 downloads
Yii Version: 1.1
License: (not set)
Category: Database
Developed by: Edgard Messias
Created on: Feb 27, 2013
Last updated: 10 years ago

Downloads

show all

Related Extensions