2017-03-08 38 views
0

我试图用这个地址打开我的phpMyAdmin的,因为我在XAMPP端口为8080。phpMyAdmin的将不会加载

http://localhost:8080/phpmyadmin/

但页面将不会加载后一会儿,它会给出超时错误。 在我config.inc文件,

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

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

我怎么做,到目前为止发生了变化

$cfg['Servers'][$i]['auth_type'] = 'http'; 

$cfg['Servers'][$i]['auth_type'] = 'config';' 

和改变

$cfg['Servers'][$i]['host'] = 'localhost:8080'; 

$cfg['Servers'][$i]['host'] = '127.0.0.1'; 

以及改变我的密码“”,但仍然没有运气

回答

0

如果您使用的XAMPP,应该有办法直接从XAMPP界面中打开phpMyAdmin的。我建议你恢复你对config.inc.php所做的更改,并尝试使用XAMPP方法进行输入。

$ cfg ['Servers'] [$ i] ['auth_type'] ='http';

我以为XAMPP使用auth_type配置,所以这有点奇怪;你提到将 http 更改为 config,但可能它已被设置为首先配置?说明用户名和密码(如接下来两行所做的)只需要auth_type config,所以如果您使用其他方法,则忽略这些行。

此外,如果登录时发生问题,则使用'http'并不能提供错误报告;出于测试目的,请尝试使用'config'或'cookie',看看你是否得到了更好的错误。这就是说,如果你在长时间试图加载后只是空白页面,这表明其他事情可能是错误的。请检查您的网络服务器错误日志,以获取有关问题的提示。

$ cfg ['Servers'] [$ i] ['host'] ='localhost:8080';

这肯定是不正确的;因为此指令指定了MySQL服务器的主机名,您可以使用$cfg['Servers'][$i]['port']指定MySQL端口号。可能$cfg['Servers'][$i]['host'] = '127.0.0.1';在这里是正确的,上面的注释表明它通过TCP(而不是socket)连接将支持这种猜测。