我安装了XAMPP服务器并且运行正常,但是当我通过远程访问连接到phpMyAdmin时,我遇到了这个问题:
我的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;
即使我配置密码并且我输入密码,我也遇到同样的问题。
答案 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;