【发布时间】:2011-11-03 02:22:42
【问题描述】:
我更改了root密码进行测试,现在我无法登录XAMPP中的phpMyAdmin页面。我寻求帮助 here 和 here 基本上说 XAMPP\PHPMYADMIN 文件夹中的 config.inc.php 文件已更改。
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'test'; <---- changed this
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'test'; <--- I changed this too (Edit: Not needed)
下面的代码使用上面的密码工作
if($_SERVER['REMOTE_ADDR']=="127.0.0.1")
{
define("DATABASE_SERVER", "localhost");
define("DATABASE_USERNAME", "root");
define("DATABASE_PASSWORD", "test");
define("DATABASE_NAME", "TIGERWOODS");
}
这发生在我之前在 Mac 上,我无法解决它。现在它再次发生在 WinXP 上。我正在使用 Xampp 1.7.4。
【问题讨论】:
标签: phpmyadmin xampp