Home > Database > Mysql Tutorial > body text

mysql 忘记密码 后的修改测试可用_MySQL

WBOY
Release: 2016-06-01 13:51:59
Original
909 people have browsed it

第一步@ 打开cmd 运行命令 net stop mysql 停止mysql服务

第二部@ 进入mysql安装目录的 bin文件夹下 运行 mysqld-nt  --skip-grant-tables

     (目的是跳过密码检测) 不要关掉cmd窗口

第三部@ 再打开cmd窗口 运行 mysql 命令 use mysql

选择mysql数据库

运行sql语句修改密码 :update user set password=PASSWORD(‘1234556’) where user=’123456’;

 

第四部 @  运行命令 flush privileges;

当出现 rows 1 access。。。。等字眼表示修改成功 ok

至此大功告成!!!!!!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!