MySql忘记密码修改方式适应5.7以上版本
作者:To_Young 时间:2024-01-28 08:58:43
1.先停止mysqld.exe的进程
2.打开cmd进入到你mysql的bin目录下输入此命令:
mysqld --skip-grant-tables
输入完成后这个cmd窗口就不能用了 另外在打开一个 如图:
3.同样进入到mysql的bin目录下直接输入mysql然后回车 现在是跳过密码验证链接到了数据库如图:
4.查看库 这个mysql这个里面的user表就放我们登陆的用户名和密码的
感兴趣可以自己查看一下
5.这里就要特别注意了在5.7以上的版本中user表里面没有password这个字段了
password这个字段貌似成了authentication_string这个了 自行此语句就可以更改了
update mysql.user set authentication_string=password('123456') where user='root' and Host = 'localhost';
6.最后执行:
flush privileges;
就ok了.
以上所述是小编给大家介绍的MySql忘记密码修改方式适应5.7以上版本网站的支持!
来源:http://blog.csdn.net/qq_16601517/article/details/73506018
标签:mysql,忘记,密码
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
JavaScript 限制文本框不可输入英文单双引号的方法
2024-04-25 13:06:56
Python反射的用法实例分析
2023-11-09 13:29:54
PyTorch 之 强大的 hub 模块和搭建神经网络进行气温预测
2022-11-11 14:41:15
![](https://img.aspxhome.com/file/2023/0/87600_0s.png)
Python利用Selenium实现弹出框的处理
2021-11-12 23:21:50
![](https://img.aspxhome.com/file/2023/9/80819_0s.jpg)
Python的Django框架中从url中捕捉文本的方法
2023-08-29 11:13:13
DreamWeaver批处理提高篇
2007-12-03 11:34:00
![](https://img.aspxhome.com/file/UploadPic/20072/200723113447246s.gif)
全网最详细的PyCharm+Anaconda的安装过程图解
2023-11-03 17:36:35
![](https://img.aspxhome.com/file/2023/5/107805_0s.png)
浅谈订单重构之 MySQL 分库分表实战篇
2024-01-13 00:53:36
![](https://img.aspxhome.com/file/2023/1/94741_0s.jpg)
Python基于xlrd模块处理合并单元格
2023-08-28 21:10:49
![](https://img.aspxhome.com/file/2023/9/83959_0s.png)
canvas 2d 环形统计图手写实现示例
2023-07-13 16:35:23
![](https://img.aspxhome.com/file/2023/1/55911_0s.jpg)
MySQL时间格式化date_format使用语法
2024-01-23 07:31:36
matlab xlabel位置的设置方式
2022-06-11 06:51:24
![](https://img.aspxhome.com/file/2023/1/112921_0s.png)
JavaScript也谈内存优化
2024-02-25 16:33:17
![](https://img.aspxhome.com/file/2023/0/56370_0s.jpg)
python中如何使用insert函数
2023-08-02 17:04:43
JavaScript实现烟花特效(面向对象)
2024-02-26 22:44:50
Python 网络编程之UDP发送接收数据功能示例【基于socket套接字】
2023-09-23 14:33:28
解密Python中的描述符(descriptor)
2023-12-05 08:28:48
python3.7 sys模块的具体使用
2023-02-07 16:25:54
在cmder下安装ipython以及环境的搭建
2023-01-11 03:27:37
![](https://img.aspxhome.com/file/2023/7/102817_0s.png)
JSP页面中如何用select标签实现级联
2024-04-22 12:59:20
![](https://img.aspxhome.com/file/2023/2/135982_0s.jpg)