Issue “Error establishing a database connection” problem.

Not sure if this is the case in dreamhost, but in most hosts, you need to “attach” or “assign” the db user to the db in cpanel. If you ahve not done this, you will get the error you describe.

http://www.wpwhitesecurity.com/wordpress-tutorial/wordpress-database-cpanel/