安装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.’));
}*/





Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐