Home >Backend Development >PHP Tutorial >mysql - wamp下phpmyadmin如何修改密码?

mysql - wamp下phpmyadmin如何修改密码?

WBOY
WBOYOriginal
2016-06-06 20:29:491193browse

phpmyadmin被我修改后加密了,然后把加密的密码忘了,这下不知道怎么改了,谁知道,告诉我一下,谢谢!

回复内容:

phpmyadmin被我修改后加密了,然后把加密的密码忘了,这下不知道怎么改了,谁知道,告诉我一下,谢谢!

把wampserver卸载后重新安装就可以了..

在配置my.cnf(Windows上是my.ini)的[mysqld]下加入:
bind-address = 127.0.0.1
skip-grant-tables
重启MySQL服务.
phpMyAdmin的config.inc.php中加入:
$cfg['Servers'][$i]['AllowNoPassword'] = true;
浏览器访问本地phpMyAdmin,用户名填root,密码留空,点击确定即可登录.
然后执行SQL重新设置root用户密码:
use mysql;
update user set password=password('新密码') where user='root';
最后去掉配置里的skip-grant-tables重启MySQL.

在phpmyadmin里面有地方可以给你修改密码的(是否记得原来密码都木有关系)

在用户选项卡,选择你需要修改密码的用户,点击编辑权限,弹出图如下

mysql - wamp下phpmyadmin如何修改密码?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn