CodeIgniter Forums

Full Version: Problem Connecting to IBM DB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I can not connect to a db2 ibm here my configuration:

$db['default'] = array(
'dsn' => '';
'hostname' => "DRIVER={IBM i Access ODBC Driver};SYSTEM=192.......;DBQ=;DFTPKGLIB=;LANGUAGEID=ENU;QRYSTGLMT=-1;",
'username' => 'user',
'password' => 'pass',
'database' => 'base',
'dbdriver' => 'odbc',
'dbprefix' => '',
'pconnect' => TRUE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);

Need your helps Thank's Angel Angel
@nhakkari

I will first ask the obvious question...Is your PHP configured with the PDO/ODBC drivers?
With odbc