Error establishing a database connection – WordPress setup, everything else is working

Ended up re-creating the db accounts and it worked afterwards.