Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL++ - Programming with the C++ API to MySQL
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
MyODBC connection problems on a Mac

MyODBC connection problems on a Mac

2006-04-13       - By Ken Tozier

 Back
Hi

I'm having no luck getting MyODBC to work on a Mac. I downloaded the  
installer here: http://dev.mysql.com/downloads/connector/odbc/3.51.html

Followed the DSN setup instructions here: http://dev.mysql.com/doc/
refman/4.1/en/dsn-on-unix.html

Verified that my paths variables were set up correctly by running  
"set" from the terminal.

Wrote a small PHP script that calls odbc_connect:

$db_connection   = odbc_connect('myodbc', 'ktozier', 'parkerdog')
            or die('Could not connect: ' . odbc_error());

And keep getting the error: "Could not connect:IM002"

I Googled that error which was explained here: http://
www.easysoft.com/support/kb/kb00073.html

"IM002 - DSN or TargetDSN not found. The DSN specified in the  
connection string could not be found by the OOB client in the  
odbc.ini file."

Made sure the path defined in the odbc.ini file points to the myodbc  
driver (it does)

And that's where it stands now. Completely stuck.

Anyone have any insights into what else I should try?

Thanks

Ken

Here's the odbc.ini file:

[ODBC Data Sources]
myodbc = MySQL ODBC 3.51 Driver

[myodbc]
Driver   = /usr/lib/libmyodbc3.dylib
SERVER   = localhost
PORT     =
USER     = <user name>
Password = <user password>
Database = <database>
OPTION   = 3
SOCKET   =

[ODBC]
TraceAutoStop = 0
TraceFile     =
TraceLibrary  =


Here's the contents of the odbcinst.ini file:

[ODBC Drivers]
MySQL ODBC 3.51 Driver = Installed

[MySQL ODBC 3.51 Driver]
Driver = /usr/lib/libmyodbc3.dylib
Setup  =


--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe:    http://lists.mysql.com/myodbc?unsub=mysql@(protected)