Damn. I keep forgetting that the purpose of this blog isn’t to write profound pieces of prose (or astounding achievements in alliteration). Nope, ‘cuz that’s what killed the last blog… the pressure. This one is all about getting juicy morsels of tech/tips/code/hackery out into that ever expanding void known only as the internet. That way it’s findable. That way, dear reader, you don’t have to suffer as I did.
So having said that, here’s a juicy morsel, in handy tip format: Apparently, Mac OS X 10.5, Leopard changed the location of a crucial MySQL file. PHP can’t find it anymore. To be honest, I don’t know the extent of the damage this causes, but it definitely makes WordPress unhappy (WordPress won’t connect to MySQL. Yeah… that’s somewhat of a problem). So here’s how you fix it:
- Crack open the WordPress config file that you’re going to need to crack open to config WordPress anyway. You know, wp-config-sample.php.
- Punch in the normal config info… database name, username, password…
- After that, there’s a line that asks for the DB-HOST parameter and then a comment that say’s “99% chance you won’t need to change this value”. Well, guess what? You need to change this value. Change ‘localhost’ to ‘localhost:/tmp/mysql.sock’.
- Last step, throw your hands in the air and thanks the heavens (or curse the heavens… your call).
It took me about four hours to troubleshoot my way through this. I eventually found the problem buried deep within this tutorial (thanks, Warker!).