{"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":"http:\/\/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<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"mailto:?subject=%5BShared%20Post%5D%20MyODBC%20not%20showing%20in%20drivers%20list%20on%20Mac%20OS%20X&body=http%3A%2F%2Fwww.bytebot.net%2Fblog%2Farchives%2F2007%2F04%2F24%2Fmyodbc-not-showing-in-drivers-list-on-mac-os-x&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you&#039;re having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"60fb462ad8\" data-email-share-track-url=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/04\/24\/myodbc-not-showing-in-drivers-list-on-mac-os-x?share=email\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-529\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/04\/24\/myodbc-not-showing-in-drivers-list-on-mac-os-x?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-529\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/04\/24\/myodbc-not-showing-in-drivers-list-on-mac-os-x?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-529\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/04\/24\/myodbc-not-showing-in-drivers-list-on-mac-os-x?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","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<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"mailto:?subject=%5BShared%20Post%5D%20MyODBC%20not%20showing%20in%20drivers%20list%20on%20Mac%20OS%20X&body=http%3A%2F%2Fwww.bytebot.net%2Fblog%2Farchives%2F2007%2F04%2F24%2Fmyodbc-not-showing-in-drivers-list-on-mac-os-x&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you&#039;re having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"60fb462ad8\" data-email-share-track-url=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/04\/24\/myodbc-not-showing-in-drivers-list-on-mac-os-x?share=email\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-529\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/04\/24\/myodbc-not-showing-in-drivers-list-on-mac-os-x?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-529\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/04\/24\/myodbc-not-showing-in-drivers-list-on-mac-os-x?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-529\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/04\/24\/myodbc-not-showing-in-drivers-list-on-mac-os-x?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_options":[]},"categories":[23],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4vJD-8x","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":927,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/08\/08\/howto-mysql-connectorc-on-mac-os-x","url_meta":{"origin":529,"position":0},"title":"HOWTO: MySQL Connector\/C++ on Mac OS X","date":"8\/8\/2008","format":false,"excerpt":"Excited with the release of the MySQL Connector\/C++, I thought I'd get it going on Mac OS X. You'll first hit the problem that Mac OS X doesn't come with CMake. So you'll have to download it from the site - there's a warning there that the .dmg installer only\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1001,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/09\/03\/point-of-sale-systems-and-their-back-ends","url_meta":{"origin":529,"position":1},"title":"Point of Sale systems, and their back-ends","date":"3\/9\/2008","format":false,"excerpt":"Old Town White Coffee is a place we've been hanging out a lot at. Its got wifi, power sockets, couches, good food and drink, great eye candy (bonus!), and is open till late. Today, we found out that all their PCs that hold the orders (order{1,2,3,4}) have Samba shares. Open\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":780,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/04\/14\/compiling-mysql-udfs-on-mac-os-x","url_meta":{"origin":529,"position":2},"title":"Compiling MySQL UDFs on Mac OS X","date":"14\/4\/2008","format":false,"excerpt":"Compiling and installing a User Defined Function for MySQL on Mac OS X seems tricky. There are installation notes, but they seem to be sparse on OS X (the comments are clues, though). I was looking through the tutorial materials for Roland's talk, and came up with what I think\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":764,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/04\/06\/mysql-on-leopard-os-x-105-prefpane-fixed","url_meta":{"origin":529,"position":3},"title":"MySQL on Leopard OS X 10.5 PrefPane fixed!","date":"6\/4\/2008","format":false,"excerpt":"A few months ago, I wrote about the issues you will face with installing MySQL on OS X 10.5, Leopard. I am pleased to inform everyone, that this problem has been fixed!The bug in question, mysql#28854, clearly stated that the problem was with the PrefPane. On Valentine's Day 2008, Alfredo\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":666,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2007\/11\/16\/mysql-on-leopard-os-x-105","url_meta":{"origin":529,"position":4},"title":"MySQL on Leopard (OS X 10.5)","date":"16\/11\/2007","format":false,"excerpt":"Use MySQL? On Leopard\/OS X 10.5? Yes, the current available packages from dev.mysql.com don't work very well. I track \"mysql\" on Twitter, and boy, are there heaps of complaints.So its nice to see, Dan Benjamin, a member of the MySQL community, stepping up, and creating the amazing Installing MySQL on\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":781,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/04\/14\/my-favourite-bugfix-in-mysql-5124-rc","url_meta":{"origin":529,"position":5},"title":"My favourite bugfix in MySQL 5.1.24-rc","date":"14\/4\/2008","format":false,"excerpt":"I've been using MySQL 5.1 a lot more of late. Also, as of about a month ago, I'm now a Mac OS X user, so tend to use MySQL on OS X Leopard 10.5 a lot more for testing. I've found a rather annoying bug (in 5.1.23-rc) that is fixed\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"amp_enabled":true,"_links":{"self":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/529"}],"collection":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=529"}],"version-history":[{"count":0,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/529\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=529"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}