在xampp上拒绝phpmyadmin访问

时间:2019-09-21 07:58:35

标签: phpmyadmin xampp

访问phpmyadmin时出现错误

“无法连接:无效的设置”

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

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

enter image description here

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

1 个答案:

答案 0 :(得分:0)

借助此视频https://www.youtube.com/watch?v=vzs9Z12OTE4

,我已解决了该问题

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

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