Home > php教程 > php手册 > body text

phpMyAdmin中修改MySQL root密码的方法

WBOY
Release: 2016-05-26 08:21:16
Original
2380 people have browsed it

phpmyadmin修改mysql用户的密码我们要注意一点的是,如果你修改的是你自己登录的用户密码,那么我们修改之后就必须在phpmyadmin配置文件中进行修改,下面我们一起来看看.

点击顶部的"SQL"标签进入sql命令输入界面,输入以下命令:

update mysql.user set password=PASSWORD('snsgou$123456') where user='root';
Copy after login

注意了,如果你修改了root密码之后我们的phpMyAdmin的配置文件中的密码也需要修改,否则登录不上去.

找到:$cfg['Servers'][$i]['password'] = '';//phprm.com

修改为:$cfg['Servers'][$i]['password'] = 'snsgou$123456';

重启MySQL服务后新密码生效.


教程网址:

欢迎收藏∩_∩但请保留本文链接。

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!