当前位置:网站首页>【已解决】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;
边栏推荐
- leetcode:98. 验证二叉搜索树
- [Hot100]10. Regular Expression Matching
- How does the CPU recognize the code?
- 成品升级程序
- [Hot100]回文子串 与 最长回文子串
- Joseph problem C language
- SOC_ SD_ CLK
- Fastapi learning Day2
- Deep learning --- the weight of the three good students' scores (3)
- Problems and solutions of creating topic messages in ROS
猜你喜欢

It turns out that you are such an array. You have finally learned

RT thread migration to s5p4418 (IV): thread synchronization

Fastapi learning Day2

Porting RT thread to s5p4418 (V): thread communication

Huawei full-scale Daniel shared the 598 page full-color Manual of network protocols for the first time

Porting RT thread to s5p4418 (II): dynamic memory management

Numpy中的四个小技巧

app闪退
![[hot100] palindrome substring and longest palindrome substring](/img/a5/10dec640f02023c4d55cb42e6309fb.png)
[hot100] palindrome substring and longest palindrome substring

MySQL优化:从十几秒优化到三百毫秒
随机推荐
0基础转行软件测试,如何实现月薪9.5k+
What if I forget my account number after opening an account? Is it safe to open an account online?
Write a C program to judge whether the system is large end byte order or small end byte order
Google Earth engine (GEE) - Murray global tidal wetland change V1 (1999-2019) data set
相关数据库问题提问。
SOC项目AHB_SD_HOST控制器设计
Deep learning --- the weight of the three good students' scores (3)
成品升级程序
Linux服务器安装Redis
ROS service communication programming
[my advanced OpenGL learning journey] about the access methods of vector and matrix classification of OpenGL shaders: xyzw/rgba/stpq and array subscripts
Unity中实现溶解(Dissolve)特效及其原理解析
1.6 - CPU composition
史上最全一句话木马
Numpy中的四个小技巧
Xshell传输文件
Egret engine P2 physics engine (2) - Funny physical phenomenon of small balls hitting the ground
我开户后把账号忘记了咋办?股票在网上开户安全吗?
IDEA import导入的类明明存在,却飘红?
[mask RCNN] target detection and recognition based on mask RCNN