SQLSTATE=HY000, SQLDriverConnect: -23101 [Informix][Informix ODBC Driver][Informix]Unspecified System Error = -23101
OS: Ubuntu 16.04 64Bits
- Install Informix CSDK (Version 4.10)
Compile PDO_INFORMIX (Version 1.3.3)
Enable pdo_informix.so extension in apache config
Set apache environment variables
1 - INFORMIXDIR = /opt/informix (where I installed CSDK)
2 - DB_LOCALE = en_US.819
3 - CLIENT_LOCALE = en_US.utf8
Connection String: $instance = new PDO("informix:host=$host;service=$port;database=$db;server=ol_standard;protocol=onsoctcp;client_locale=en_US.utf8;db_locale=en_US.819;EnableScrollableCursors=1;OPTIMIZEAUTOCOMMIT=1", $usr, $pwd);
The 23101 error is about DB_LOCALE and CLIENT_LOCALE, but it is all set.
db_localeand not required to useDB_LOCALE? Dittoclient_localeandCLIENT_LOCALE? - Jonathan Leffler