如何更改为root用户在phpMyAdmin WAMP服务器上的密码?因为我被锁在成功运行,不正确地改变密码之后。

有帮助吗?

解决方案

在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'] = 'enter_username_here';
$cfg['Servers'][$i]['password'] = 'enter_password_here';
$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
 */

?>

其他提示

有一个名为的config.inc.php在phpMyAdmin的文件夹中的文件。

在文件路径为C:\瓦帕\应用\ phpmyadmin4.0.4

修改的AUTH_TYPE '的Cookie' 到 '配置' 或 'HTTP'

$ CFG [ '服务器'] [$ i]于[ 'AUTH_TYPE'] = '饼干';

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

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

当你去phpmyadmin的网站,那么你将被要求输入用户名和密码。这也保证外部人员访问您的phpmyadmin应用程序,如果你碰巧有您的Web服务器暴露在外部的连接。

通过以下这个步骤获取回的默认设定:

相反

$cfg['Servers'][$i]['AllowNoPassword'] = false;

它更改为:

$cfg['Servers'][$i]['AllowNoPassword'] = true;

在您的config.inc.php文件。

不指定任何密码,并把用户名称,因为它是前,这意味着root

E.g。

$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';

这工作对我来说我已经编辑我config.inc.php文件之后。

我有一些问题,它,它我使用另一种配置变量固定

$cfg['Servers'][$i]['AllowNoPassword'] = true;
instead
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;

可以是将有益的OT有人

搜索您的phpMyAdmin安装一个名为为Documentation.txt文件。介绍如何创建一个名为config.inc.php文件和如何配置用户名和密码。

看起来像在WAMP phpmyadmin的用户名和密码被存储在其它地方(可能在一个自定义的配置文件中)或存在过程中涉及的一些额外的散列或...

所以,改变目前使用默认的“基于config'文件密码,您可以浏览‘<host>/phpmyadmin/user_password.php’使用浏览器。你会被提示输入你的mysql凭据,然后你可以使用表格显示为您登录到以前的用户改变存储的密码。

如果没有找到命令行的MySQL -u根-p任何密码用途 你在安装的启动类型,它会问密码,这将是默认密码。 这将是您登录密码在phpMyAdmin的

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top