xampp 上的 phpmyadmin 访问被拒绝

phpmyadmin access denied on xampp

访问 phpmyadmin 时出现错误

"Cannot connect: invalid settings"

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';

/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';

/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';

我在 Whosebug 上尝试了所有类似的问题,但没有帮助。

我最后的选择是重新安装 xampp。

感谢这个视频,我已经解决了这个问题 https://www.youtube.com/watch?v=vzs9Z12OTE4

要解决此问题,您需要打开 xampp 控制面板,然后打开 MySQL 配置下的 my.ini。

然后我在[mysqld]下面添加了"skip-grant-tables"