installing wordpress on a Mac using MacPorts

Note to self: when setting up mysql on a Mac using MacPorts (formerly Darwin Ports), install mysql with the following:

% sudo port install mysql5 +server

That bloody little “+server” part was a royal pain in the ass, let me tell you.
I would think that mysql installs would be servers by default.
There should instead be a special “+client” flag to prevent server installation!

Oh, and for some reason, the wp-config.php did not like the host name localhost.
Instead, use