【发布时间】:2011-01-10 08:06:01
【问题描述】:
我正在使用 xampp 版本 1.6.4 和 PHP 版本 5.2.4,我正在尝试在 xampp 上安装 Magento 最新版本。我在配置页面中收到错误。也就是说,它显示 '数据库连接错误。'。
我在页面中填写的字段:
数据库连接
- 主机-----本地主机
- 数据库名称---- Magento(已经在phpMyadmin中创建)
- 用户名-----root
- 密码-----空白
网络访问选项
基本 URL ------ http://127.0.0.1/magento/
管理路径 ------ admin
启用图表----选中
在下一步之前跳过基本 URL 验证 --选中
使用 Web 服务器 (Apache) 重写 --- 未选中
使用安全 URL (SSL) ---- 未选中
会话存储选项
11.Save Session Data In -- 文件系统
我已经在 phpMyadmin 中创建了 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'] = '';
【问题讨论】:
-
密码实际上是空白还是您只是为了安全而隐藏它?也许它要求密码不为空。
-
它实际上只是空的。我没有在这里隐藏任何东西。因为它只是一个loalserver。即使它没有连接到互联网。
-
@clockworkgeek 将密码设置为我的本地主机 phpmyadmin 后,它不会显示数据库连接错误。但它不会转到下一页和基本 URL ------ 127.0.0.1/magento 更改为基本 URL ------ localhost/magento我不知道为什么?
-
如果安装程序已填充数据库,则已检查
core_config_data表中的base_url值。这些都应该有一个句点,所以使用“127.0.0.1”而不是“localhost”。
标签: php magento e-commerce magento-1.4