当前位置:网站首页>【已解决】MySQL异常:ERROR 1045 (28000): Unknown error 1045,忘记初始密码
【已解决】MySQL异常:ERROR 1045 (28000): Unknown error 1045,忘记初始密码
2022-06-30 06:56:00 【菜鸟是大神】
skip-grant-tables
保存,重启数据库
重新执行命令“mysql -u root -p ”,不需要输入密码直接按enter键可以登录成功
输入获取的数据库初始密码,执行下述3个命令,修改密码并刷新权限;
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;
FLUSH PRIVILEGES;
边栏推荐
- 元宇宙由哪些底层技术支撑?
- Notes: environment variables
- Goland常用快捷键设置
- SOC project AHB_ SD_ Host controller design
- Egret P2 physical engine (1) small ball falling demo
- Pay attention to this live broadcast and learn about the path to achieve the dual carbon goal of the energy industry
- 相关数据库问题提问。
- 1.7 - CPU performance indicators
- RT thread Kernel Implementation (VI): time slice
- IDEA import导入的类明明存在,却飘红?
猜你喜欢
Google Earth Engine(GEE)——墨累全球潮汐湿地变化 v1 (1999-2019) 数据集
明天!“移动云杯”大赛空宣会开播!
第一行代码(第三版)学习笔记
Fastapi learning Day1
IDEA import导入的类明明存在,却飘红?
编写并运行第一个Go语言程序
SOC项目AHB_SD_HOST控制器设计
Deploying web projects using idea
[fuzzy neural network] mobile robot path planning based on Fuzzy Neural Network
C language: exercise 3
随机推荐
Egret P2 pit encountered by physical engine (1)
[hot100] palindrome substring and longest palindrome substring
Principle: webmvcconfigurer and webmvcconfigurationsupport pit avoidance Guide
oracle
2022年6月29日--使用C#迈出第一步--使用 C# 中的“if”、“else”和“else if”语句向代码添加决策逻辑
Daemon and user threads
[Hot100]10. 正则表达式匹配
记录一次腾讯测试开发工程师自动化接口测试实践经验
【Hot100】11. Container with the most water
SOC project AHB_ SD_ Host controller design
MySQL优化:从十几秒优化到三百毫秒
SOC_ AHB_ SD_ IF
RT thread Kernel Implementation (IV): multi priority
leetcode:98. 验证二叉搜索树
Ls1028 manual
ROS-URDF
Which securities company is good for opening a mobile account? Also, is it safe to open an account online?
SOC_ SD_ CLK
Record common problems: spaces in encodeuricomponent decoding and the use of Schema in third-party apps to invoke apps
Pay attention to this live broadcast and learn about the path to achieve the dual carbon goal of the energy industry