我发现这个问题已被问过很多次,但我没有找到解决我的问题的方法。尝试了所有可能的组合config.inc.php
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'pmapass';
我安装了XAMPP。在PhpMyAdmin中我修改了密码root@localhost
。我可以使用新密码登录 PhpMyAdmin。
但是当我按照 drupal 安装步骤添加新用户 Drupal 时,出现以下错误:
Error 1045, "Access denied for user 'root'@'localhost' (Password: YES)
但仍然创建了 drupal 用户,但 mysql 中的 drupal 数据库没有创建。
当我尝试单独创建 drupal 数据库时,我能够做到。
除此之外我尝试过MySQL.exe -u root -p
。那里工作得很好,所以我不确定。
在config.inc.php中
edit
$cfg['Servers'][$i]['auth_type'] = 'whatever_it_is';
to
$cfg['Servers'][$i]['auth_type'] = 'cookie';
然后重新启动。
一些魔法将会发生!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)