Welcome to the always interesting world of strange MySQL decisions. This
isn't a Django problem, it's normal MySQL client library behaviour. When
the host is "localhost", it will never use TCP/IP, only Unix sockets.
Even though localhost is a perfectly valid domain name.
Instead, you need to use 127.0.0.1 to force the connection to go via
TCP/IP. I'm pretty sure, without having tested it, that Django will be
fine with that (setting the HOST string to an IP address). We just pass
that information straight through to the MySQLdb python wrapper, so
whatever it accepts, we accept.
Malcolm
--
Success always occurs in private and failure in full view.
http://www.pointy-stick.com/blog/