当前位置:网站首页>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 #退出
六、登陆验证

边栏推荐
- The difference between oracle temporary table and pg temporary table
- 双向LSTM
- [Introduction to go language] 12. Pointer
- The pipeline mechanism in sklearn
- JPEG2jpg
- No matching function for call to ‘RCTBridgeModuleNameForClass‘
- 【论文阅读】Multi-View Spectral Clustering with Optimal Neighborhood Laplacian Matrix
- ConnectionRefusedError: [Errno 111] Connection refused问题解决
- 审稿意见回复
- 机器学习——分类问题对于文字标签的处理(特征工程)
猜你喜欢

浅谈游戏音效测试点

MNIST手写数字识别 —— ResNet-经典卷积神经网络

Lee‘s way of Deep Learning 深度学习笔记

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

Copy攻城狮信手”粘“来 AI 对对联

亚马逊云科技 Build On 2022 - AIot 第二季物联网专场实验心得

迅雷关闭自动更新

亚马逊云科技Build On-Amazon Neptune基于知识图谱的推荐模型构建心得

0, deep learning 21 days learning challenge 】 【 set up learning environment
![[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()
随机推荐
【论文阅读】Anchor-Free Person Search
TensorFlow2 study notes: 7. Optimizer
Copy Siege Lion 5-minute online experience MindIR format model generation
MNIST手写数字识别 —— 从感知机到卷积神经网络
动手学深度学习_卷积神经网络CNN
MFC读取点云,只能正常显示第一个,显示后面时报错
Brief description of database and common operation guide
[CV-Learning] Semantic Segmentation
投稿相关
如何成长为高级工程师?
双向LSTM
基于BiGRU和GAN的数据生成方法
A code example of the PCL method in the domain of DG (Domain Generalization)
【Copy攻城狮日志】飞浆学院强化学习7日打卡营-学习笔记
【CV-Learning】图像分类
Amazon Cloud Technology Build On 2022 - AIot Season 2 IoT Special Experiment Experience
Usage of RecyclerView
数据库的简述与常用操作指南
fill_between in Matplotlib; np.argsort() function
WARNING: sql version 9.2, server version 11.0. Some psql features might not work.