svk*_*svk 2 php magento e-commerce magento-1.4
我使用的XAMPP 1.6.4版本的PHP版本5.2.4,我试图安装在xampp.I Magento的最新版本得到了在配置page.That错误是,它显示"数据库连接错误"..
填写在页面中的字段:
数据库连接
Web访问选项
基本网址------ http://127.0.0.1/magento/
管理路径------管理员
启用图表----已选中
在下一步之前跳过基本URL验证 - 已检查
使用Web服务器(Apache)重写---未选中
使用安全URL(SSL)----未选中
会话存储选项
11.保存会话数据 - 文件系统
我已经在phpMyadmin.But中创建了Magento数据库,当我点击继续它显示错误.我不知道为什么?请帮助我.
更新: phpMyadminConfiguration
$cfg['PmaAbsoluteUri'] = '';
$cfg['PmaNoRelation_DisableWarning'] = FALSE;
$cfg['blowfish_secret'] = 'xampp';
$i = 0;
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['ssl'] = false;
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['controluser'] = '';
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['SignonSession'] = '';
$cfg['Servers'][$i]['SignonURL'] = '';
$cfg['Servers'][$i]['LogoutURL'] = '';
$cfg['Servers'][$i]['nopassword'] = FALSE;
$cfg['Servers'][$i]['only_db'] = '';
$cfg['Servers'][$i]['hide_db'] = '';
$cfg['Servers'][$i]['verbose'] = '';
$cfg['Servers'][$i]['pmadb'] = '';
Run Code Online (Sandbox Code Playgroud)
这是一个非常古老的问题,但我最近遇到过它,我希望这个答案可以帮助别人.我的问题归结为在新的WAMP安装之上的旧版Magento.从MySQL 5.6.1开始,has_innodb变量已被删除.但是,Magento安装程序会检查该变量,如果找不到则会抛出错误.如果您实际检查异常日志,您将看到数据库服务器不支持InnoDB的错误.然而在catch处理程序中,它只记录该异常并抛出通用的"数据库连接错误"消息.
如果你确定你的数据库支持InnoDB,最简单的解决方法是简单地编辑app\code\core\Mage\Install\Model\Installer\Db.php,找到checkDatabase方法,并注释掉try块的末尾检查have_innodb的部分.通常情况下,我不主张编辑核心文件,但这只是为了让安装程序正常工作,所以我说它足够安全.
希望能帮助处于类似情况的其他人.