{"id":529,"date":"2007-04-24T18:46:56","date_gmt":"2007-04-24T23:46:56","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/archives\/2007\/04\/24\/myodbc-not-showing-in-drivers-list-on-mac-os-x"},"modified":"2007-04-24T18:51:13","modified_gmt":"2007-04-24T23:51:13","slug":"myodbc-not-showing-in-drivers-list-on-mac-os-x","status":"publish","type":"post","link":"https:\/\/www.bytebot.net\/blog\/archives\/2007\/04\/24\/myodbc-not-showing-in-drivers-list-on-mac-os-x","title":{"rendered":"MyODBC not showing in drivers list on Mac OS X"},"content":{"rendered":"<p>Today I missed a bunch of good talks that I was hoping to attend, because I was figuring out a <a href=\"http:\/\/forums.mysql.com\/read.php?37,51550,51550\">problem<\/a> at the <a href=\"http:\/\/lists.mysql.com\/mysql\/206126\">Guru Bar<\/a>. Offending criminal: MySQL <a href=\"http:\/\/dev.mysql.com\/downloads\/connector\/odbc\/3.51.html\">Connector\/ODBC 3.51<\/a>. Offending OS: Mac OS X\/PowerPC.<\/p>\n<p>OS X comes with an ODBC Administrator. Once you unpack the MySQL package, and the .pkg installs itself, you&#8217;ll find that all your files are installed in \/usr\/lib. You need to fire up ODBC Administrator, click on Drivers, and Add the driver. Give it an appropriate Description (MySQL), provide the location of the driver file (\/usr\/lib\/libmyodbc3.dylib), and define it as available within the System (this enables you to enable at the System DSN as well as the User DSN, in the next step).<\/p>\n<p>Later, etiher add as a user or system DSN, one for mysql. The keyword\/value pairs are such that it should be: server\/localhost, port\/3306, database\/test.<\/p>\n<p>The caveat with all of this, is that you actually need to have \/usr\/lib\/libltdl.3.dylib present. Because libmyodbc3.dylib references it, and if you don&#8217;t have it, it will fail rather beautifully. How do you get libltdl.3.dylib? Get XCode! If you don&#8217;t have your install discs around, get it from the <a href=\"http:\/\/developer.apple.com\/\">Apple Developer Connection<\/a>. Beware, its a 923MB download (now you see why I missed not only a talk &#8211; large downloads at the conference tend to break, duh!).<\/p>\n<p>Testing the ODBC connection? Make good use of \/usr\/bin\/iodbctest. We were of course doing some odd things with Microsoft Excel (ick!). Once \/usr\/lib\/libltdl.3.dylib is installed, the ODBC connection magically works. With regards to Excel, the external data source will just show up and thus, you can use it. If you didn&#8217;t define the keyword\/value pairs in the ODBC Administrator, you can always do it in Excel (however, running iodbctest will then fail).<\/p>\n<p>Why was this not discovered earlier? Probably because developer tools are a really common thing to have installed. But users, tend to not have XCode installed, by default. And OS X doesn&#8217;t have packaging guidelines, unlike sensible RPM\/DEB. When I get back, I&#8217;ll see if its possible to ship this missing bit otherwise get the Documentation team to update documentation&#8230;<\/p>\n<p>Bottom-line: <strong>Make sure XCode is installed if you&#8217;re going to use Connector\/ODBC<\/strong>.<\/p>\n<p>Technorati Tags: <a href=\"http:\/\/technorati.com\/tag\/mysql\" class=\"performancingtags\" rel=\"tag\">mysql<\/a>, <a href=\"http:\/\/technorati.com\/tag\/macosx\" class=\"performancingtags\" rel=\"tag\">macosx<\/a>, <a href=\"http:\/\/technorati.com\/tag\/odbc\" class=\"performancingtags\" rel=\"tag\">odbc<\/a>, <a href=\"http:\/\/technorati.com\/tag\/connector\/odbc\" class=\"performancingtags\" rel=\"tag\">connector\/odbc<\/a>, <a href=\"http:\/\/technorati.com\/tag\/myodbc\" class=\"performancingtags\" rel=\"tag\">myodbc<\/a>, <a href=\"http:\/\/technorati.com\/tag\/drivers\" class=\"performancingtags\" rel=\"tag\">drivers<\/a>, <a href=\"http:\/\/technorati.com\/tag\/xcode\" class=\"performancingtags\" rel=\"tag\">xcode<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I missed a bunch of good talks that I was hoping to attend, because I was figuring out a problem at the Guru Bar. Offending criminal: MySQL Connector\/ODBC 3.51. Offending OS: Mac OS X\/PowerPC. OS X comes with an ODBC Administrator. Once you unpack the MySQL package, and the .pkg installs itself, you&#8217;ll find [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[23],"tags":[],"class_list":["post-529","post","type-post","status-publish","format-standard","hentry","category-mysql"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p4vJD-8x","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"amp_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=529"}],"version-history":[{"count":0,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/529\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}