Windows忘记mysql密码的解决方案
时间:2023-06-14 19:38:22
如果忘记了 MySQL 的 root 密码,可以用以下方法重新设置:1. KILL掉系统里的MySQL进程,方法如下:a、点击桌面工具栏打开任务栏管理器。b、从任务管理器的进程中找到mysqld-nt.exe进程,点击右键选择结束进程。 ...
如果忘记了 MySQL 的 root 密码,可以用以下方法重新设置:
1. KILL掉系统里的MySQL进程,方法如下:
a、点击桌面工具栏打开任务栏管理器。
b、从任务管理器的进程中找到mysqld-nt.exe进程,点击右键选择结束进程。
2. 在命令行中输入命令 mysqld-nt --skip-grant-tables 启动MySQL,以不检查权限的方式启动;
3. 然后另外开一窗口,用空密码方式使用root用户登录 MySQL;
4. 修改root用户的密码;
mysql> update mysql.user set password=PASSWORD('新密码') where User='root';
mysql> flush privileges;
mysql> quit
5. 重新启动MySQL,就可以使用新密码登录了。
标签:Windows,mysql密码
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
WPS文字怎么设置五号字体并居中
2023-03-05 15:06:14
Excel如何隐藏单元格内容
2023-10-02 14:43:01
![](https://img.aspxhome.com/file/2023/0/55060_0s.gif)
如何在WPS演示中将Flash快速插入到文件内
2022-09-21 14:24:31
win11合盖不休眠怎么设置?win11合盖不休眠设置方法
2023-09-26 06:57:34
![](https://img.aspxhome.com/file/2023/28/a239073_0s.jpg)
如何手动计算wps office工作表?
2023-07-04 16:41:45
![](https://img.aspxhome.com/file/2023/7/a167937_0s.gif)
Win11笔记本wifi功能消失了怎么解决?Win11笔记本wifi功能消失了解决方法
2022-07-22 03:16:53
![](https://img.aspxhome.com/file/2023/27/a235831_0s.png)
苹果Mac网络性能监控工具推荐:PeakHour
2022-03-01 00:21:10
![](https://img.aspxhome.com/file/2023/9/a207249_0s.jpeg)
WPS 如何在word里绘制不规格表格
2023-06-22 06:49:25
![](https://img.aspxhome.com/file/2023/2/a186402_0s.jpg)
excel函数公式怎样设置自动更新
2022-06-22 05:22:08
WPS Excel怎么快速计算总成绩
2023-09-13 20:53:32
![](https://img.aspxhome.com/file/2023/8/a185688_0s.jpg)
如何动态获取excel工作表中最后一条数据?
2023-05-15 14:59:48
![](https://img.aspxhome.com/file/2023/7/a140497_0s.jpg)
Win10系统外接摄像头不能用问题的解决方法
2022-02-08 10:48:17
![](https://img.aspxhome.com/file/2023/28/a245113_0s.jpg)
Win11右键怎么直接打开所有选项?Win11使用注册表直接打开右键所有选项方法
2023-05-25 05:31:45
![](https://img.aspxhome.com/file/2023/28/a239715_0s.jpg)
Excel批注不显示怎么办?Excel批注显示方法
2022-02-04 02:44:42
![](https://img.aspxhome.com/file/2023/3/40523_0s.jpg)
Mac创意卡通字体合集
2023-05-28 04:22:49
![](https://img.aspxhome.com/file/2023/3/a205353_0s.jpeg)
苹果推出 Safari 119 技术预览版:性能改善,安装不需要开发者账户
2023-07-21 07:36:39
![](https://img.aspxhome.com/file/2023/7/a208537_0s.png)
Word中删除样式技巧推荐
2023-04-26 19:48:23
![](https://img.aspxhome.com/file/2023/2/24792_0s.png)
WPS怎么设计中国风效果的圆形木门框?
2022-07-12 04:25:15
![](https://img.aspxhome.com/file/2023/4/a165904_0s.jpg)
Excel函数应用教程:函数与公式的概念
2023-05-26 16:17:08
Excel提示找不到D:/MY.XLSX的解决办法 (图文教程)
2022-12-21 12:20:07
![](https://img.aspxhome.com/file/2023/4/38334_0s.jpg)