我看到这个问题已被多次询问,但我找不到解决问题的方法.尝试在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.它在那里工作正常,所以我不确定.
尝试改变
原文链接:https://www.f2er.com/php/133870.html$cfg[‘Servers’][$i][‘host’] = ‘localhost’;
至
$cfg[‘Servers’][$i][‘host’] = ‘127.0.0.1’;