If you are running DBngin on your Mac and want to install a local copy of WordPress for development you will find the WordPress installer won’t work.  The reason behind this is DBngin uses sockets to make it’s connections.  If you head to the command line and type “mysql” you’ll see an error like this:

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)

Thankfully there’s a really simple way to install WordPress by telling it to use sockets instead. So, when you get to the DATABASE HOST field try the following value instead of localhost:

127.0.0.1:/var/lib/mysql/mysql.sock