当前位置:网站首页>Solve the problem of centos8 MySQL password ERROR 1820 (HY000) You must reset your password using the ALTER USER
Solve the problem of centos8 MySQL password ERROR 1820 (HY000) You must reset your password using the ALTER USER
2022-07-30 21:32:00 【m0_67394230】
MySQL execution statement error
mysql> use mysql;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql> show databases;
ERROR 1820 (HY000): You mustreset your password using ALTER USER statement before executing this statement.
According to common practice, it is not possible to directly modify the password level and authority
mysql> set global validate_password.policy=0;
mysql> set global validate_password.length=1;
And found that any statement entered is wrong
Solution:
1. First modify a password that meets its requirements. I modified it as shown in the figure:
mysql> alter user 'root'@'localhost' identified by 'MYsql123/*' ;

2. Change the password level permission

3. Refresh

4. Finally, modify the password you want to modify: (Both sentences in the test chart can be successfully modified)

5.quit quit MySQL and log in to MySQL again
Finally ps: I use centos 8.5.2111 MySQL 8. If it is MySQL 5, the statement to modify the password level period will be different
Just a little bit more specific, I hope it will be useful to you
Let me introduce myself first. The editor graduated from Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Ali in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
- 系统结构考点之PM2I单级网络
- Enhancing Quality for HEVC Compressed Videos
- Teach you how to build a permanently running personal server
- Deep Non-Local Kalman Network for VideoCompression Artifact Reduction
- DPW-SDNet: Dual Pixel-Wavelet Domain Deep CNNsfor Soft Decoding of JPEG-Compressed Images
- ML.NET相关资源整理
- Chrome 配置samesite=none方式
- Babbitt | Metaverse Daily Must Read: The shuffling is coming, will the digital Tibetan industry usher in a new batch of leaders in the second half?Will there be new ways to play?...
- Apache DolphinScheduler新一代分布式工作流任务调度平台实战-
- 用于命名实体识别的模块化交互网络
猜你喜欢

解决npm warn config global `--global`, `--local` are deprecated. use `--location=global` instead

MySQL60题作业

【Nacos】解决Nacos下载速度缓慢的问题

opencv,numpy,tensor格式转换

基于ABP实现DDD--领域服务、应用服务和DTO实践

How strict Typescript strict mode?

Navigation Bar----Personal Center Dropdown

面试难题:分布式 Session 实现难点,这篇就够!

Use the map function to operate on each element in the list It seems that you don't need a map

MySQL60 homework
随机推荐
手把手教你搭建一台永久运行的个人服务器
关于SFML Rect.inl文件报错的问题
外包干了三年,废了...
Oracle ADG状态查看与相关视图
(7/29)基础板子最小生成树prim+kruskal
mysql 时间字段默认设置为当前时间
What is the common factor
tcp协议传输中的粘包问题
系统结构考点之多级混洗交换网络
uni-app开发微信小程序踩坑
openim支持十万超级大群
MySQL分页查询的5种方法
JSESSIONID description in cookie
Image Restoration by Estimating Frequency Distribution of Local Patches
MySQL笔记1(数据库的好处,数据库的概念,数据库的特点,MySQL的启动,数据模型,SQL)
Union, the difference between union and structure, the knowledge of enumeration of C language corners
c语言进阶篇:指针(五)
Enhancing Quality for HEVC Compressed Videos
About the data synchronization delay of MySQL master-slave replication
js堆和栈