[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [unixODBC][Driver Manager]Data source name not found, and no default driver



Even, my dltest is succesful -
 
[root@demo etc]# dltest /usr/lib/libmyodbc3.so SQLConnect
SUCCESS: Loaded /usr/lib/libmyodbc3.so
SUCCESS: Found SQLConnect
[root@demo etc]#
 
Here is my odbc.ini
 

; begin odbc.ini
[ODBC Data Sources]
test = Connector/ODBC 3.51 Driver DSN

[test]
Driver = /usr/lib/libmyodbc3.so
Description = Connector/ODBC 3.51 Driver DSN
Server = localhost
DSN = test
Port = 3306
Socket = /var/lib/mysql/mysql.sock
User = root
Password = mysql
Database = test
ServerType = MySQL
Option =
TraceFile = /var/log/mysql_test_trace.log
Trace = 0

[Default]
Driver = /usr/lib/libmyodbc3.so
Description = Connector/ODBC 3.51 Driver DSN
Server = localhost
DSN = test
Port = 3306
Socket = /var/lib/mysql/mysql.sock
User = root
Password = mysql
Database = test
ServerType = MySQL
Option =
TraceFile = /var/log/mysql_test_trace.log
Trace = 0
;end odbc.ini



 
On 5/24/07, Ace <rajan.halade@gmail.com> wrote:
Hi,
 
   I am trying to start LDAP 2.3.32 with MySQL as backend. I am using unixODBC. When I start slapd it reports -
 
============================================
backsql_open_db_conn(4294967295): SQLConnect() to database "test" failed.
Return code: -1
   nativeErrCode=0 SQLengineState=IM002 msg="[unixODBC][Driver Manager]Data source name not found, and no default driver specified"
backsql_get_db_conn(): could not get connection handle -- returning NULL
============================================
 
With strace, I can see that its opening odbc.ini but no reference to odbcinst.ini, why so?

--
I may be miles away... but I am just a mail away.... so keep mailing...!!!
Cheers,
Rajan



--
I may be miles away... but I am just a mail away.... so keep mailing...!!!
Cheers,
Rajan