mySQL errror

I have been trying to install Movable Type, WordPress and phpBB with mySQL. I have setup my database and a username and password under that database. I have put all that information in my config files. They all say something along the lines of “Can’t connect to database”. Did I miss a step? Do I have to create a hostname? Is my hostname localhost? Have I done something wrong in the Dreamhost Control Panel?