ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:database:pdo_new

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
v5:database:pdo_new [2022/04/03 12:26] – Modify title, add work-in-progress comment dregadv5:database:pdo_new [2023/01/24 04:00] (current) mnewnham
Line 130: Line 130:
  
   * This driver requires the installation of the IBM DB2 client   * This driver requires the installation of the IBM DB2 client
 +  * See the [[v5:database:ibm_db2|Preferred Driver]] page for more information about building DSNs for use with DB2 connections.
  
 ------------------------------------------------------- -------------------------------------------------------
Line 137: Line 138:
 $db   = ADOnewConnection('pdo\ibm'); $db   = ADOnewConnection('pdo\ibm');
  
-$dsn = 'hostname=192.168.86.141;protocol=tcpip;port=50000;';+$dsn = 'hostname=192.168.86.141;protocol=tcpip;port=25010;';
 $dsn.= 'database=SAMPLE;uid=db2inst1;pwd=somepassword'; $dsn.= 'database=SAMPLE;uid=db2inst1;pwd=somepassword';
 $user = ''; $user = '';
v5/database/pdo_new.txt · Last modified: 2023/01/24 04:00 by mnewnham