Showing results for 
Search instead for 
Did you mean: 

Database connection error


Database connection error

I'm trying to installl  magento using File Zilla but when its comming to Configuration I'm gettin "Database connection error."

somone who can help me?


Re: Database connection error


This is likely because you have some of your database details entered wrong or a permission issue whilst trying to connect.


Can you check in you var/log/exception.log file to see if there are any errors in there?


If you don't see anything in there... edit the file app\code\core\Mage\Install\Model\Installer\Db.php and find the below code:

Mage::throwException(Mage::helper('install')->__('Database connection error.'));

Change it too:


This time when you try it should output some error message indicating which part of your setup was wrong.


Let us know how you get on.

Problem solved? Click Accept as Solution!
Magento Certified Developer Plus | | Magento Small Business Partner

Re: Database connection error

1. The error message that I see is "
Database server does not support the InnoDB storage engine.
I'm not able to go through configuration step during magento EE installation with WAMP.

2. The solution to the error message that I face with is :

In my case there is no app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php file.

Any tips?

Re: Database connection error

wrong database name , host and wrong database user name ,password