I'm getting this issue with a new MT GS Server and have yet to resolve the problem despite reading he various recommendations on EESE. My database.php file is set to point to my config.php file where I've placed all my DB settings in a DRY setup. Both have been tested with 755 and 777 with no change in results. I can log into the db with PHPMyAdmin and Sequel Pro but when I try EE and a simple test script I get the above error. Any ideas why I can connect with PHPMyAdmin and Sequel Pro but not through PHP? Any other suggestions to try to resolve a db connection? Anything to keep in mind when talking to tech support at MT?