访问被拒绝用户'admin'@'localhost'(使用密码:YES)

时间:2017-04-14 14:57:57

标签: mysql phpmyadmin xampp

我尝试登录localhost/phpmyadmin时出现此错误:

 mysqli_real_connect(): (HY000/1045): Access denied for user 'admin'@'localhost' (using password: YES)

这是我的phpmyadmin / config.inc

$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'admin';
$cfg['Servers'][$i]['password'] = 'admin';
$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'] = '';

任何人都可以帮助我?

0 个答案:

没有答案