首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Wamp中为PhpMyAdmin中的用户设置密码

问在Wamp中为PhpMyAdmin中的用户设置密码
EN

Stack Overflow用户
提问于 2009-01-31 05:35:13
回答 6查看 144.6K关注 0票数 22

如何在WAMP服务器上的phpMyAdmin中更改根用户的密码?因为在错误地更改了密码之后,我被锁在了phpMyAdmin之外。

EN

回答 6

Stack Overflow用户

回答已采纳

发布于 2009-01-31 06:14:07

我在phpmyadmin文件夹中的config.inc.php文件。将用户名和密码更改为您为数据库设置的用户名和密码。

代码语言:javascript
复制
    <?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
 */

?>
票数 32
EN

Stack Overflow用户

发布于 2012-07-05 00:31:15

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

文件路径为C:\wamp\apps\phpmyadmin4.0.4

将auth_type 'cookie‘编辑为’auth_type‘或’http‘cookie

$cfg‘’Servers‘’auth_type‘= 'cookie';

代码语言:javascript
复制
$cfg['Servers'][$i]['auth_type'] = 'config';

或

代码语言:javascript
复制
$cfg['Servers'][$i]['auth_type'] = 'http';

当您转到phpmyadmin站点时,系统将要求您提供用户名和密码。如果您碰巧将您的web服务器暴露给外部连接,这也可以防止外部人员访问您的phpmyadmin应用程序。

票数 14
EN

Stack Overflow用户

发布于 2009-11-24 00:12:11

我遇到了一些问题,我用另一个配置变量解决了这个问题

代码语言:javascript
复制
$cfg['Servers'][$i]['AllowNoPassword'] = true;
instead
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;

也许它会对某人有很大的帮助

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/498343

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档