当前位置:网站首页>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】作为密码,链接即可。
边栏推荐
猜你喜欢
Understand the composition of building energy-saving system
Allure -- common configuration items
[unreal] key to open the door blueprint notes
Ctrip starts mixed office. How can small and medium-sized enterprises achieve mixed office?
使用Windbg静态分析dump文件(实战经验总结)
07 data import sqoop
Configuration programmée du générateur de plantes du moteur illusoire UE - - Comment générer rapidement une grande forêt
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
Edge computing accelerates live video scenes: clearer, smoother, and more real-time
Basic notes of illusory AI blueprint (10000 words)
随机推荐
07 data import sqoop
Blender石头雕刻
网络通信学习
UE4夜间打光笔记
【Lua】常见知识点汇总(包含常见面试考点)
Basic notes of illusory AI blueprint (10000 words)
2021-10-04
2021-10-02
[visual studio] every time you open a script of unity3d, a new vs2017 will be automatically reopened
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
pytest--之测试报告allure配置
Blender stone carving
Understand the composition of building energy-saving system
Brief analysis of edgedb architecture
高考的意义是什么
[unity3d] nested use layout group to make scroll view with dynamic sub object height
What is the relationship between realizing page watermarking and mutationobserver?
虚幻材质编辑器基础——如何连接一个最基本的材质
Pytest-- test report allure configuration
Network real-time video streaming based on OpenCV