当前位置:网站首页>Windows环境MySQL8忘记密码文件解决方案
Windows环境MySQL8忘记密码文件解决方案
2022-07-02 06:39:00 【红目香薰】
【实施工程师】——一个被忽视的高级【人性】技术岗
俗称【擦屁股】的老实人。
但是,真的就是一个【老实人】吗?
【老实人】能解决这里面各种各样的坑吗?
【宣讲】的时候由于【程序员与测试工程师】留下的【历史遗留】问题,一堆人【怼】你的时候没有一个强大的【心理】和【能力】凭啥扛过去?
【实施工程师】——真正的强者
【实施工程师之家】——主要解决问题
当前频道分为【8】个模块,基本上社会主流的实施都涵盖了,当然,例如【手持设备】运维,老师付我这块涉及的比较少,暂时也没有开通,回头有一些小伙伴有这方面的技术可以交流一下,我也会专门为你开设这个频道。
目录
2、在MySQL的bin文件夹下创建密码文件【newpwd.txt】
3、用管理员权限运行cmd,打开到MySQL的bin目录下,运行以下命令:
1、停止MySQL服务
在服务里面直接鼠标右键停止即可
2、在MySQL的bin文件夹下创建密码文件【newpwd.txt】
内容:意思是讲root账号的密码改为root,账号和密码都是【root】好记
ALTER user [email protected]'localhost' identified by 'root';3、用管理员权限运行cmd,打开到MySQL的bin目录下,运行以下命令:
自己看好路径,我这里的路径是【MySQL】的根目录下执行的
mysqld --defaults-file="my.ini" --init-file="bin/rootpwd.txt"mysqld就是初始化数据库,后面的意思就是格式化后执行这个修改密码的配置
4、关闭【cmd】,启动MySQL服务
使用【root】作为密码,链接即可。
边栏推荐
- Ctrip starts mixed office. How can small and medium-sized enterprises achieve mixed office?
- Pycaret | a few lines of code to solve machine learning modeling
- lunix重新分配root 和 home 空间内存
- stm32和電機開發(上比特系統)
- 01安装虚拟机
- Nonlinear optimization: establishment of slam model
- Importing tables from sqoop
- UE5——AI追逐(藍圖、行為樹)
- webUI自动化学习
- 合并有序数列
猜你喜欢

【MySQL】连接MySQL时出现异常:Connection must be valid and open

Understand the composition of building energy-saving system

AutoCAD - layer Linetype

ue虚幻引擎程序化植物生成器设置——如何快速生成大片森林

使用Windbg静态分析dump文件(实战经验总结)

Blender模型导入ue、碰撞设置

Pytest-- test report allure configuration
![[pit avoidance guide] pit encountered using ugui: the text component cannot indent the first line by two spaces](/img/6f/e5a30dae824ccb22d1157818be58be.png)
[pit avoidance guide] pit encountered using ugui: the text component cannot indent the first line by two spaces

Unreal material editor foundation - how to connect a basic material

Network real-time video streaming based on OpenCV
随机推荐
ERROR 1118 (42000): Row size too large (> 8126)
ue虚幻引擎程序化植物生成器设置——如何快速生成大片森林
lunix重新分配root 和 home 空间内存
Merge ordered sequence
webUI自动化学习
[pit avoidance guide] pit encountered using ugui: the text component cannot indent the first line by two spaces
Blender多鏡頭(多機比特)切換
高考的意义是什么
pytest框架实现前后置
虚幻材质编辑器基础——如何连接一个最基本的材质
Application of rxjs operator withlatestfrom in Spartacus UI of SAP e-commerce cloud
Notes de base sur les plans illusoires d'IA (triés en 10 000 mots)
Postman--使用
Centos7 one click compilation and installation of PHP script
AutoCAD - layer Linetype
flink 提交程序
Blender海洋制作
Redis set password
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
判断数组中是否存在重复元素