Do you have .htaccess file in the local folder? If so, rename it to htaccess.txt. I find if there's a .htaccess file present it prevents me from connecting to the database and I get the exact errors you're describing.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.