![]() But there’s a rub – the connector available through MacPorts only ships with the complete MacPorts version of MySQL. There is another option – a precompiled python-mysql connector does exist, but only available through the MacPorts project, which aims to remove some of the pain of installing common *nix tools on OS X. I eventually got it to compile, but don’t remember how.” ![]() Even seasoned developers in #django offer responses like “Yeah, I remember that was a huge PITA. But I can’t get the damn thing to compile and install cleanly, despite all the recipes out there. “It’s open source,” you say – “Fix it and contribute your fixes back to the community.” I would. Developers wasting hours trying to get a simple db connector to compile… but it never seems to get fixed. Judging by timestamps on old blog entries, this sorry state of affairs has been going on for years. Python’s easy_install is no help either – it chokes because it can’t find the path to mysql_config, and there’s no way to hand it one (that I can tell.) Complaints of the same problem largely go unanswered – presumably people just give up. The recipes that would get python-mysql to build and install still failed when I attempted import MySQLdb from within Python. I tried mysql-python versions 1.2.1, 1.2.2, and the beta version of 1.2.3. I spent three hours yesterday trying one recipe after another. Search for “mac python mysql binding” and you’ll find dozens (hundreds?) of sites describing processes you can go through to edit a few of the source files so they’ll compile on OS X. Python setup.py buildsudo python setup.py install Ah, but the source code is developed for and tested on Linux, and has apparently never been test-built on Mac OS X by the maintainers. The usual I’ve added my solution at the end of this post.įirst, the official mysql-python package available at SourceForge does not offer a. Update: I finally did manage to get Python and MySQL playing nice together, but it took a few more contortions beyond what’s described in the recipes found scattered around the interwebs. But try to get up and running with Django, TurboGears, or any other Python package where MySQL database access could be useful (or needed), and you’re in for a world of hurt. ![]() If you enable Apache and PHP, your PHP scripts will talk to your installed MySQL databases just fine, since PHP comes bundled with a MySQL database connector. Installing MySQL itself is easy enough – Sun provides a binary package installer. In all of Mac-dom, there are few experiences more painful than trying to get Python tools to talk to a MySQL database. I would please like to know if that is normal and how to solve that if it's not or even if I need to download something else also? Thank you.Update: This entry has been updated for Snow Leopard. However, I don't know how to use this and how I can start coding.My download folder was Macintosh HD but I can't see MySQL application there(I thought that I would see an SQL app like for example MS Excel app where I can click, open and start coding, but I can't find it nowhere even after the download). If I go to system preference, I can see mysql logo and I can Start MySQL Server by pressing a button and when I press it nothing special happens other that a message which tells me that MySQL Server Instance is running. I am new to MySql and I would please like to know how can I download mysql program properly and start coding? This was my procedure: I went to and I downloaded this version: -MySQL Database 5.6.12 DMG for Mac OS X 10.6 x86 (64bit) and after that: -mysql-advanced-5.6.12-osx10.6-x86_64.pkg in Macintosh HD path and I received a message that installation was succesful. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |