当前位置:网站首页>【已解决】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;
边栏推荐
猜你喜欢

Go installation and configuration (1)

Egret P2 pit encountered by physical engine (1)

RT thread Kernel Implementation (II): critical area, object container
![[docsify basic use]](/img/9d/db689f5f13708f3e241474afeca1d0.png)
[docsify basic use]

0基础转行软件测试,如何实现月薪9.5k+

【模糊神经网络】基于模糊神经网络的移动机器人路径规划

Unity中实现溶解(Dissolve)特效及其原理解析

How to set the hot deployment of idea web project

The most complete sentence in history

Jingwei Hengrun won the 10ppm quality award of paccar group again
随机推荐
Porting RT thread to s5p4418 (II): dynamic memory management
What underlying technologies support the metauniverse?
【json-tutorial】第一章学习笔记
Xshell transfer file
Servlet principle
RT thread Kernel Implementation (II): critical area, object container
Finished product upgrade procedure
Huawei full-scale Daniel shared the 598 page full-color Manual of network protocols for the first time
【每日一题】535. TinyURL 的加密与解密
【Hot100】15. 三数之和
NFS mount
Go语言指针介绍
Porting RT thread to s5p4418 (V): thread communication
[Hot100]回文子串 与 最长回文子串
Deploying web projects using idea
Connection Flood攻击原理
Ftplib+ tqdm upload and download progress bar
Develop common dependency Libraries
【模糊神经网络】基于模糊神经网络的移动机器人路径规划
ftplib+ tqdm 上传下载进度条