Originally posted by Brad Dorr
I have installed and can connect to MySQL on our AIX 5.2 Cloverleaf server. We are running version 5.2 of Cloverleaf. I am now trying to get Cloverleaf to talk to the DB, but I am getting an error saying "Specified driver could not be loaded". I have install the ODBC driver for MySQL on the server and updated the odbc.ini file in Connect4.2 folder. See below. Has anyone done this before that could offer some assistance?
[PHNS_Nimbus_QOSDB]
Driver=/software/quovadx/qdx5.2/integrator/lib/mysql/lib/libmyodbc3.so
Description=MSS
Address=IP,1433
AnsiNPW=Yes
Database=test
LogonID=myid
Password=mypassword
QuotedId=No
Here are the TCl commands I used:
package require odbc
odbc SQLAllocHandle SQL_HANDLE_ENV SQL_NULL_HANDLE henv
odbc SQLSetEnvAttr $henv SQL_ATTR_ODBC_VERSION SQL_OV_ODBC3 0
odbc SQLAllocHandle SQL_HANDLE_DBC $henv hdbc
odbc SQLConnect $hdbc PHNS_Nimbus_QOSDB SQL_NTS myid SQL_NTS mypassword SQL_NTS
odbc SQLGetDiagRec SQL_HANDLE_DBC $hdbc 1 SqlState NativeError MessageText 711 TextLength
echo $MessageText
Thanks,
Brad.Dorr@PHNS.com