当前位置:网站首页>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 #退出
六、登陆验证
边栏推荐
- Image-Adaptive YOLO for Object Detection in Adverse Weather Conditions
- MNIST handwritten digit recognition, sorted by from two to ten
- 【Copy攻城狮日志】飞浆学院强化学习7日打卡营-学习笔记
- 动手学深度学习_线性回归
- Android foundation [Super detailed android storage method analysis (SharedPreferences, SQLite database storage)]
- TensorFlow: tf.ConfigProto() and Session
- Unity ML-agents 参数设置解明
- Jupyter Notebook installed library;ModuleNotFoundError: No module named 'plotly' solution.
- (导航页)OpenStack-M版-双节点手工搭建-附B站视频
- 度量学习(Metric learning、损失函数、triplet、三元组损失、fastreid)
猜你喜欢
[Deep Learning 21 Days Learning Challenge] 1. My handwriting was successfully recognized by the model - CNN implements mnist handwritten digit recognition model study notes
光条中心提取方法总结(一)
详解近端策略优化
CSDN大礼包--高校圆桌派大礼包
典型CCN网络——efficientNet(2019-Google-已开源)
亚马逊云科技 Build On 2022 - AIot 第二季物联网专场实验心得
动手学深度学习__张量
Usage of RecyclerView
【论文阅读】Further Non-local and Channel Attention Networks for Vehicle Re-identification
Amazon Cloud Technology Build On 2022 - AIot Season 2 IoT Special Experiment Experience
随机推荐
数据库的简述与常用操作指南
图像线性融合
动手学深度学习_softmax回归
(TensorFlow) - detailed explanation of tf.variable_scope and tf.name_scope
【论文阅读】TransReID: Transformer-based Object Re-Identification
Android foundation [Super detailed android storage method analysis (SharedPreferences, SQLite database storage)]
fuser 使用—— YOLOV5内存溢出——kill nvidai-smi 无pid 的 GPU 进程
[CV-Learning] Semantic Segmentation
MNIST手写数字识别 —— ResNet-经典卷积神经网络
Thoroughly understand box plot analysis
target has libraries with conflicting names: libcrypto.a and libssl.a.
Learning curve learning_curve function in sklearn
动手学深度学习__张量
学习资料re-id
深度学习,“粮草”先行--浅谈数据集获取之道
【Copy攻城狮日志】飞浆学院强化学习7日打卡营-学习笔记
深度确定性策略梯度(DDPG)
Deep Learning Theory - Initialization, Parameter Adjustment
[CV-Learning] Linear Classifier (SVM Basics)
Pytorch问题总结