1

我刚刚设置了 WAMP 服务器。我的端口 80 已经在使用中,所以我更改了 Apachehttpd.conf文件中的以下几行以使用端口号 8080。

httpd.conf 文件

然后我将 MySQL 的 root 密码更改为abc123使用 MySQL 控制台。到目前为止一切都很好。

然后我如下配置了 phpMyAdmin 的设置脚本(config.inc文件)(通过使用 GUI 的浏览器)。我保存了配置。

<?php
/*
 * Generated configuration file
 * Generated by: phpMyAdmin 3.4.10.1 setup script
 * Date: Tue, 05 Jun 2012 12:42:11 +0000
 */

/* Servers configuration */
$i = 0;

/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = '';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = 8080;
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'abc123';

/* End of servers configuration */

$cfg['blowfish_secret'] = '4fcdfe94a0e6c7.79135356';
$cfg['DefaultLang'] = 'en';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>

但是即使我提供了正确的用户凭据,我仍然无法登录到 phpMyAdmin。它没有给我任何错误消息。只需要很长时间加载并转到带有这样 URL 的空白页面。

http://localhost:8080/phpmyadmin/index.php?token=d30e16bb6e28ae70e8c2ed12a9c4e61f

我不知道还能做什么。我错过了一步吗?任何帮助/建议将不胜感激。

谢谢你。

4

1 回答 1

3

知道了!这里的端口号$cfg['Servers'][$i]['port'] = 8080;不是 localhost 的端口。它是 MySQL 的端口号。哪个应该留空作为默认设置。我以前不知道。现在一切正常。

于 2012-06-05T14:16:50.983 回答