PHP and Informix on Debian - how to install/configure the PDO

前端 未结 2 699

This question seems to be asked quite a bit and the answer seems to change with time. I\'ve spent the weekend getting the IBM Client SDK for Informix working on Debian (because

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-03 13:14

    I'm receiving this error: SQLSTATE=HY000, SQLDriverConnect: -23101 [Informix][Informix ODBC Driver][Informix]Unspecified System Error = -23101

    I've tryed to setenv INFORMIXDIR, DB_LOCALE and CLIENT_LOCALE on apache config, but does not work.

    Apache Environment

    Here is my connection string:

    $instance = new PDO("informix:host=$host;service=$port;database=$db;server=ol_standard;protocol=onsoctcp;client_locale=en_US.819;db_locale=en_US.819;EnableScrollableCursors=1;OPTIMIZEAUTOCOMMIT=1", "informix", "");
    

提交回复
热议问题