Error establishing a database connection

No idea what I did here. When going to my site I get the following error: “Error establishing a database connection”.

I have gone to the control panel, done a restore of the database and received the email saying it has been restored but I still get this error.

I’m new to dreamhost and new to wordpress so I am kinda stuck here.

Any assistance or advice is appreciated.

FIXED IT! My bad. I changed the password for the DB user in the Control Panel and assumed it would make the change in the DB, but it doesn’t. Just had to edit a file. phewww.