magento 安装错误:database connect error

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





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值