You must reset your password报错

  • mysql连接成功之后,执行sql报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
    • 需要修改初始化密码
    • 如果修改的密码不符合密码策略会报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
    • 默认密码策略(长度,字符,数字要求)
    • 修改密码策略

mysql连接成功之后,执行sql报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

需要修改初始化密码

#连接mysql并输入密码
mysql -u root -p
#修改初始化密码
ALTER USER USER() IDENTIFIED BY 'TESTtest1234.';

如果修改的密码不符合密码策略会报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

默认密码策略(长度,字符,数字要求)

修改密码策略

#连接mysql并输入密码
mysql -u root -p
#设置密码策略
set global validate_password_policy=0;
set global validate_password_length=1;

ERROR 1820: You must reset your password using ALTER USER statement before executing this statement相关推荐

  1. mysql 报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin

    今天在窗口使用命令执行操作时,总是这个报错,一开始感觉莫名其妙 ERROR 1820 (HY000): You must reset your password using ALTER USER st ...

  2. mysql ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing t

    前言:这篇转载的文章是我很久以前写的,但是后来手机换号了,又注册新号开始继续写blog.旧文章不能合并到新账号,就以转载的形式纪念下过去 环境:ubuntu 16.04/mysql 5.7.16 今天 ...

  3. 【mysql】You must reset your password using ALTER USER statement before executing this statement报错处理

    安装完mysql 之后,登陆以后,不管运行任何命令,总是提示这个 mysql> show databases; ERROR 1820 (HY000): You must reset your p ...

  4. mysql 密码 You must reset your password using ALTER USER statement before executing this statement....

    mysql error You must reset your password using ALTER USER statement before executing this statement. ...

  5. MySQL 输入任何语句都提示You must reset your password using ALTER USER 解决方法

    Win10上安装并配置完成MySQL-5.7.22,修改第一次密码并登陆后,不论输入什么语句,都出现提示"You must reset your password using ALTER U ...

  6. mysql修改初始密码/ 重置默认密码 You must reset your password using ALTER USER statement

    初次使用mysql键入任何命令都会报以下错: You must reset your password using ALTER USER statement before executing this ...

  7. you must reset your password using alter table

    1:  SET PASSWORD = PASSWORD('your new password'); 2:  ALTER USER 'root'@'localhost' PASSWORD EXPIRE ...

  8. You must reset your password using ALTER USER statement before executing thi

    第一次 安装好mysql 创建数据库的时候提示这个问题,百度了,自己的处理方法 就是第一次需要设置数据库的密码 ,把原始的数据库密码更改一下 更改密码的方法: mysql> SET PASSWO ...

  9. ERROR 1820 (HY000): You must reset your password

    数据库安装后执行命令ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executi ...

  10. linux启动mysql1820_linux 系统下MySQL5.7重置root密码(完整版,含ERROR 1820 (HY000)解决方案)...

    mysql的root密码忘记了怎么重置? 往下看: 1.保证你的mysql服务处于关闭状态.(用ps -ef | grep mysql 查看进程,有则kill -9 进程号) 2.在my.cnf所在目 ...

最新文章

  1. 2_Selenium对象识别
  2. c语言线程传int值,如何用C语言实现多线程
  3. return两个返回值_LeetCode 第四题 寻找两个有序数组的中位数
  4. jdk1.8 base64注意事项
  5. 程序是怎样跑起来的:第一章-对程序员来说CPU是什么
  6. python列表、元组、集合、字典、json相互转换以及其他基础入门
  7. 【肿瘤分割】基于matlab聚类乳腺肿瘤图像分割【含Matlab源码 1471期】
  8. BackTrack5 下破解无线
  9. 手机屏幕坏了怎么把数据导出来_手机屏幕失灵怎么办 手机屏幕失灵解决办法【详解】...
  10. 如何通过企业微信做精细化社群运营
  11. Micrium 开放了µC/OS-III源代码
  12. Vuex持久化,刷新,vuex-along最详细教程
  13. 英语基础语法(九)-被动语态
  14. java rd th 小票机_英语日期rd,th有什么区别,怎么运用
  15. LVGL lv_btn 按钮(9)
  16. 2021年电工(初级)报名考试及电工(初级)考试内容
  17. 【C#工具】后宫佳丽三千
  18. python爬虫找漫画出现断章?那你就得看这篇爬虫思想教学咯!
  19. 【5】windows本地安装数据库
  20. 详解go中的混合锁 - mutex

热门文章

  1. substring substr slice 区别
  2. [NOI2015]寿司晚宴——状压dp
  3. BZOJ 2756: [SCOI2012]奇怪的游戏
  4. net.sf.json.JSONException: #39;object#39; is an array. Use JSONArray instead
  5. 有锚点的链接页面刷新的问题
  6. Ubuntu下Arm-Linux-GCC交叉编译环境的搭建
  7. vijos1777 引水入城
  8. sql 中WHERE字句中使用case when then
  9. 潜意识的力量:潜意识开发四大关键
  10. 游戏筑基开发之字符串的注意点(C语言)