【发布时间】:2014-05-08 14:55:29
【问题描述】:
我最近在我的 PC 上重新安装了 WAMP,并从我的备份中复制了文件。我可以毫无问题地访问localhost,并且我现有的网站运行良好。
问题是我似乎无法通过http://localhost/phpmyadmin/index.php 登录。我收到 #1045 无法登录 MySQL 服务器 响应。
在做了some reading之后,我一直相信我可以编辑phpmyadmin的config.inc.php文件来调整设置。设置我的文件后(如下所述),我只是收到 无法连接:无效设置。 错误。
<?php
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
/*
* Servers configuration
*/
$i = 0;
/*
* First server
*/
$i++;
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';
/* Advanced phpMyAdmin features */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';
$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
/*
* End of servers configuration
*/
?>
谁能指出我可以做些什么来解决这个问题?
我正在使用 PHP 5.4.12 和 mySQL 5.6.12 运行 WAMP 2。我也尝试在 WAMP 中登录 mySQL 控制台,但我无法通过密码请求...
【问题讨论】:
-
您从备份中复制了什么到您的新安装? wamp 的备份版本(即 apache 和 mysql)是否与您安装的版本相同并复制过来?
标签: php mysql phpmyadmin wamp wampserver