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

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

WBOY
Release: 2016-06-06 20:29:49
Original
1190 people have browsed it

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如何修改密码?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template