简体   繁体   中英

MySQL ODBC on Mac OS X 10.8

I've found some problems while trying to connect to a remote MySQL database using MySQL's ODBC connector. I'm on Mac OS X 10.8.2 and I've installed MySQL ODBC connector 5.2.4. Every time I tried to connect using this ODBC my connection gets refused.

Does anyone have the same issue? Is there any workaround?

Edit: I tested the ODBC connection with iODBC and I got the following result:

SQLDriverConnect = [iODBC][Driver Manager]dlopen(/usr/local/lib/libmyodbc5.so, 6): image not found (0) SQLSTATE=00000
SQLDriverConnect = [iODBC][Driver Manager]Specified driver could not be loaded (0) SQLSTATE=IM003

The MySQL Connector/ODBC 2.5.6 for Mac OS X comes only in versions for 10.6 (Snow Leopard) and 10.7 (Lion). I don't know about any official support from MySQL for Mac OS X versions 10.8 (Mountain Lion) or even 10.9 (Mavericks)!

Paid licensed solutions put more effort on supporting the latest Mac OS X versions... I have tried myself the evaluation version Actual ODBC Pack for Mac OS X with Mavericks and could get 3 rows per recordset. You can try that and if it works see if it's worth paying for unlimited rows.

Are you using the ODBC Administrator utility or the command line?

http://dev.mysql.com/doc/refman/5.0/en/connector-odbc-configuration-dsn-macosx.html

Edit: I don't think I noticed "remote" server. Does that remote server had a user with permissions to connect from your IP address?

@Jason Sundram (OP): Just FYI, Oracle has (in response to my filing bug reports about their documentation) updated the Mac OS X, mysql 5 installation instructions for Connector/ODBC, at: https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-installation-binary-osx.html

Following those steps might be helpful. They worked for me in OS X 10.9 (Mavericks). But, I'm also not trying to do precisely what you are, with your environment, so I'm not sure what effect reinstalling as instructed there may have on your problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM