Today, we faced with the problem :

Connection to the Database of Magento in another file.

While searching for the problem we found that a file local.xml has been renamed as org_local.xml and there was another local.xml file.

What was happening here,the code was playing org file resulting in database connection failure.

We removed this file and solved the issue.