安裝magento,配置數據庫時,報此錯誤,所有的數據庫,數據庫名,密碼都是正確,但是,還是無法解決。
mysql5.6導致此問題的。
解決方案:
更詳細的訪問 http://www.magentocommerce.com/boards/viewthread/228456/
翻譯:此問題是因爲mysql5.6.2 刪除“have_innodb"此變量。導致安裝mangento1.5時候一直報”database connection error“。
解決方法: 找到‘app/code/core/Mage/Install/Model/Installer/Db.php’ ,刪除或註釋下列代碼。
The problem was an evolution from mysql 5.6.2 which remove ‘have_innodb’ variable ( see http://forums.mysql.com/read.php?3,415985).
The magento 1.5.1 installation wizard doesn’t work with this mysql version, retrieving all the time ‘ database connection error’.
For the moment, until the patch come, after having checked the innodb format of your db,
you can from this file ‘app/code/core/Mage/Install/Model/Installer/Db.php’, remove the following code :
// check InnoDB support
/* if (!isset($variables[’have_innodb’]) || $variables[’have_innodb’] != ‘YES’) {
Mage::throwException(Mage::helper(’install’)->__(’Database server does not support the InnoDB storage engine.’));
}*/