我该如何修复身份验证?

时间:2016-04-21 08:36:21

标签: php mysql phpmyadmin

我安装了XAMPP服务器并且运行正常,但是当我通过远程访问连接到phpMyAdmin时,我遇到了这个问题:

enter image description here

我的config.inc.php配置是:

$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'my ip address';
$cfg['Servers'][$i]['port'] = '3306';

$cfg['Servers'][$i]['connect_type'] = 'tcp';
/*$cfg['Servers'][$i]['compress'] = false; */
$cfg['Servers'][$i]['AllowNoPassword'] = true;

即使我配置密码并且我输入密码,我也遇到同样的问题。

2 个答案:

答案 0 :(得分:1)

在MySQL中允许从主机访问root用户:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'<your IP or %>' IDENTIFIED BY '<password>';

<your IP or %> =您的IP或“%”符号是否允许所有主机访问。

<password> =您的root密码

答案 1 :(得分:-1)

变化:

ind <- rle(df$id)$values[rle(df$id)$lengths > 1]
df[df$id %in% ind,]
#  id time
#2  2    1
#3  2    2
#4  3    1
#5  3    2
#6  4    1
#7  4    2

$cfg['Servers'][$i]['AllowNoPassword'] = true;