XAMPP PhpMyAdmin错误1045,“访问被拒绝用户’root’@’localhost’

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了XAMPP PhpMyAdmin错误1045,“访问被拒绝用户’root’@’localhost’脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
我看到这个问题已被多次询问,但我找不到解决问题的方法.尝试在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.它在那里工作正常,所以我不确定.

尝试改变

脚本宝典总结

以上是脚本宝典为你收集整理的XAMPP PhpMyAdmin错误1045,“访问被拒绝用户’root’@’localhost’全部内容,希望文章能够帮你解决XAMPP PhpMyAdmin错误1045,“访问被拒绝用户’root’@’localhost’所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。