gpt4 book ai didi

php - Windows 上的 Magento 安装在 xampp 上显示数据库连接错误?

转载 作者:行者123 更新时间:2023-12-02 05:45:30 26 4
gpt4 key购买 nike

我正在使用 xampp 版本 1.6.4 和 PHP 版本 5.2.4,我正在尝试在 xampp 上安装 Magento 最新版本。我在配置页面中遇到了错误。也就是说,它显示了 '数据库连接错误。'
我在页面中填写的字段:

数据库连接

  1. 主机 ----- 本地主机
  2. 数据库名称---- Magento(已在phpMyadmin中创建)
  3. 用户名----- root
  4. 密码 ----- 空白

网络访问选项

  1. 基本网址 ------ http://127.0.0.1/magento/

  2. 管理路径 ------ admin

  3. 启用图表----选中

  4. 在下一步之前跳过基本 URL 验证 -- 选中

  5. 使用 Web 服务器 (Apache) 重写 --- 未选中

  6. 使用安全 URL (SSL) ---- 未选中

session 存储选项

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'] = '';

最佳答案

转到 phpMyAdmin 中的用户。
确保您在 Magento 中输入的用户的 host 设置为 localhost 而不是 %(任何)。

关于php - Windows 上的 Magento 安装在 xampp 上显示数据库连接错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4644768/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com