A word to the wise: getaddrinfo failures during rake db:migrate do not necessarily indicate trouble with mysql. In my case, it was caused by a missing SMTP server.