当前位置:网站首页>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
边栏推荐
- chrome extension: how to make the dialog be on the right side of the current window?
- WinDbg实践--入门篇
- 微信公众号授权登录后报redirect_uri参数错误的问题
- Google Earth Engine ——我们如何筛选一个列表中的排序以时间为例
- 触摸屏状态机
- 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?...
- [Nuxt 3] (十三) Nuxt 是如何工作的?
- LeetCode·每日一题·952.按公因数计算最大组件大小·并查集
- 导航栏----个人中心 Dropdown
- nVisual网络可视化管理平台功能和价值点
猜你喜欢
What is the common factor
navicat新建数据库
外包干了三年,废了...
Automatically generate test modules using JUnit4 and JUnitGenerator V2.0 in IDEA
解决centos8 MySQL密码问题ERROR 1820 (HY000) You must reset your password using ALTER USER
DistSQL 深度解析:打造动态化的分布式数据库
Enhancing Quality for HEVC Compressed Videos
MySQL60题作业
MySQL 游标
数字货币期货现货交易技巧,把握关键进场的买入点!(纯干货)
随机推荐
导航栏----个人中心 Dropdown
WinDbg实践--入门篇
系统结构考点之并行主存
uni-app开发微信小程序踩坑
Navicat连接MySQL时弹出:1045:Access denied for user ‘root’@’localhost’
go慢速入门——函数
登堂入室之soc开发makefile
在IDEA中使用JUnit4和JUnitGenerator V2.0自动生成测试模块
Navigation Bar----Personal Center Dropdown
外包干了三年,废了...
socket:内核初始化及创建流(文件)详细过程
8 ways to get element attributes in JS
【问题】Mysql Waiting for table metadata lock 解决方案 修改lock_wait_timeout时间
Deep Non-Local Kalman Network for VideoCompression Artifact Reduction
用于视频压缩伪影消除的深度卡尔曼滤波网络
MySQL笔记2(函数,约束,多表查询,事务)
你需要知道的ES6—ES13开发技巧
MySQL 用户授权
MySql创建数据表
Oracle ADG状态查看与相关视图