当前位置:网站首页>Windows10重置MySQL用户密码
Windows10重置MySQL用户密码
2022-08-04 05:30:00 【指剑】
一、写在最前:实验环境
二、停止mysql进程
三、cmd命令行运行mysqld console
四、修改root用户密码
五、重启mysql访问,修改ROOT用户密码
六、登陆验证
参考网站:
https://blog.csdn.net/qq_39220334/article/details/116236537
一、写在最前:实验环境
| OS | MySQL版本 |
|---|---|
| Windows 10 | MySQL 5.7.34 |
二、停止mysql进程
法1: cmd----》 net stop mysql

法2: win+R -- services.msc -----找到MYSQL进程,将其停止

三、cmd命令行运行mysqld console
mysqld --console --skip-grant-tables --shared-memory


四、修改root用户密码为空
mysql -u root -p #若提示输入密码 请直接Enter回车 ,即可进入
use mysql #选择数据库
update user set authentication_string=’’ where user=’root’;#更新root用户认证
quit #退出数据库
五、重启mysql访问,修改ROOT用户密码
关闭之前运行的mysqld console 窗口,重启mysql数据库
一定要关闭mysqld console 窗口,否则无法启动Mysql
关闭之前运行的mysqld console 窗口,重启mysql数据库
一定要关闭mysqld console 窗口,否则无法启动Mysql
关闭mysqld console 窗口后,重启mysql服务

#登录使用命令行登录mysql
mysql -u root -p #若提示输入密码,依旧按Enter回车进入
use mysql
alter user ‘root’@’localhost’ identified by ‘YOUR_PASSWORD’; #修改用户密码,请将YOUR_PASSWORD替换成你自己的密码
exit #退出
六、登陆验证

边栏推荐
- 光条中心提取方法总结(二)
- Polynomial Regression (PolynomialFeatures)
- 浅谈游戏音效测试点
- Machine Learning - Processing of Text Labels for Classification Problems (Feature Engineering)
- ConnectionRefusedError: [Errno 111] Connection refused问题解决
- 度量学习(Metric learning)—— 基于分类损失函数(softmax、交叉熵、cosface、arcface)
- pytorch学习-没掌握的点
- MOOSE平台官方第二个例子分析——关于创建Kernel,求解对流扩散方程
- MNIST手写数字识别 —— 基于Mindspore快速构建感知机实现十分类
- 【CV-Learning】卷积神经网络预备知识
猜你喜欢
![[Deep Learning 21 Days Learning Challenge] Memo: What does our neural network model look like? - detailed explanation of model.summary()](/img/99/819ccbfed599ffd52307235309cdc9.png)
[Deep Learning 21 Days Learning Challenge] Memo: What does our neural network model look like? - detailed explanation of model.summary()
![[Copy Siege Lion Log] Flying Pulp Academy Intensive Learning 7-Day Punch Camp-Study Notes](/img/af/05caea638de8d75f6d3b42b3d8e28f.png)
[Copy Siege Lion Log] Flying Pulp Academy Intensive Learning 7-Day Punch Camp-Study Notes

MOOSE平台使用入门攻略——如何运行官方教程的例子

动手学深度学习_softmax回归

lstm pipeline 过程理解(输入输出)

Halcon缺陷检测

动手学深度学习_卷积神经网络CNN
![[Deep Learning 21 Days Learning Challenge] 2. Complex sample classification and recognition - convolutional neural network (CNN) clothing image classification](/img/5f/e5db59bdca19b275b2139020ebc6ea.png)
[Deep Learning 21 Days Learning Challenge] 2. Complex sample classification and recognition - convolutional neural network (CNN) clothing image classification

Polynomial Regression (PolynomialFeatures)
![[Introduction to go language] 12. Pointer](/img/c8/4489993e66f1ef383ce49c95d78b1f.png)
[Introduction to go language] 12. Pointer
随机推荐
【Copy攻城狮日志】飞浆学院强化学习7日打卡营-学习笔记
tensorRT教程——tensor RT OP理解(实现自定义层,搭建网络)
深度学习,“粮草”先行--浅谈数据集获取之道
pytorch学习-没掌握的点
计算某像素点法线
The second official example analysis of the MOOSE platform - about creating a Kernel and solving the convection-diffusion equation
Pytorch语义分割理解
图像合并水平拼接
MNIST手写数字识别 —— 基于Mindspore快速构建感知机实现十分类
tensorRT教程——使用tensorRT OP 搭建自己的网络
Thunderbolt turns off automatic updates
TensorFlow2 study notes: 6. Overfitting and underfitting, and their mitigation solutions
浅谈外挂常识和如何防御
A code example of the PCL method in the domain of DG (Domain Generalization)
JPEG2jpg
Unity ML-agents 参数设置解明
语音驱动嘴型与面部动画生成的现状和趋势
AIDL communication between two APPs
Learning curve learning_curve function in sklearn
Copy Siege Lions "sticky" to AI couplets