gpt4 book ai didi

mysql - phpMyAdmin 无法加载

转载 作者:行者123 更新时间:2023-11-29 19:16:25 24 4
gpt4 key购买 nike

我正在尝试使用此地址打开我的 PhpMyAdmin,因为我在 xampp 中的端口是 8080。

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';

以及将我的密码更改为“”,但仍然没有成功

最佳答案

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

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

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

此外,如果登录时出现问题,使用“http”并不会给出足够多的错误报告;出于测试目的,请尝试使用“config”或“cookie”,看看是否能得到更好的错误返回。

话虽这么说,如果您在尝试加载很长时间后只是得到一个空白页面,则表明可能存在其他问题。检查您的网络服务器错误日志以获取有关问题所在的提示。

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

这当然是不正确的;因为该指令指定 MySQL 服务器的主机名,并且您可以使用 $cfg['Servers'][$i]['port'] 指定 MySQL 端口号。 。可能$cfg['Servers'][$i]['host'] = '127.0.0.1';这里是正确的,上面的评论指出它是通过 TCP(而不是套接字)连接的,这将支持这个猜测。

关于mysql - phpMyAdmin 无法加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42666305/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com