Darwinports' mice squeal

I keep trying to steal my few fleeting minutes at home to work on a project with Django, but so far it's all been trouble setting up MySQL on the Mac.

I'm using DarwinPorts to install the UNIXy stuff like Apache 2, Python 2.4, and MySQL 5. I looked at Fink, since that's the one I'd heard of long before I had the Mac, but as they say in their currently newest news entry:

Fink on the Intel platform is still considered "beta" quality, and a number of packages (particularly packages in the "unstable" tree) either do not compile, or compile but do not run. Work to improve this situation is ongoing.

Installing Apache was cake, but MySQL has been a headache. First I had to figure out I needed the +server "variant" to get the Launch Services script for actually running mysqld. (Getting that installed--making sure the +server build was "activated" and the previous wasn't--was another stolen night, but I'll cop to that.) Now I just get the Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' error as if it's not running, which I guess it isn't, despite there being some weird root process with "mysql5" in the name.

Oh, that's the problem from farther in the thread. I guess it'll have the same solution, too, as "set up the main database" is the next step in this "MAMP" guide. That guide's a lot more helpful, in fact; I'm sorry I only found it just now searching for that email thread.

Also, anti-props to everyone who thought it was OK to leave .turd_mysql5 files in the empty directories port created. I don't want your shit (npi) on my computer.

Comments

comment

I can understand using Fink/DarwinPorts for Apache 2, but why not use the “official” Mac OS X mySQL 5 bundle from the mySQL site? I didn’t have any trouble with that one at all last month, and it sounds like it could save you some hassle. :)

comment

Ditto Makali.

http://dev.mysql.com/downloads/mysql/5.0.html

Never had a problem - just installed and ran. This version’s also covered by VersionTracker — the fink stuff’s a bit spotty in that regard.

comment

Probably because I didn’t realize it existed!

comment

What everyone else said :) . The installer is good and you can even add a panel to System Preferences with it.

Only downside is that upgrading using the installer wipes your databases, so you’ll want to back them all up first :( .