Possible solution if you're having this problem.
My config file was perfect. I could access the db via MySQL no problem. But I was getting "Error establishing a database connection" trying to set up WordPress.
My ISP suggested I change the Host address from the one I use in MySQL (cf1.dmv.com) to just "localhost".
It Worked! Wow! Thought I'd share the clue.