MySQL 报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin
2018-01-24 16:55
561 查看
系统版本:macOS Sierra 10.12
MySQL版本:5.7.16
从官网下载的 dmg 安装包,安装完成后,使用自动生成的密码登陆 MySQL,执行:
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement
报错提示告诉我们,需要重新设置密码。那我们就重新设置一下密码,命令如下:
2AADB416-4F1D-48CD-9ED7-02128FEC823E.png附官网资料地址: https://dev.mysql.com/doc/refman/5.6/en/alter-user.html
小礼物走一走,来简书关注我
作者:水冰棍
链接:https://www.jianshu.com/p/53ac2d55b279
來源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
MySQL版本:5.7.16
从官网下载的 dmg 安装包,安装完成后,使用自动生成的密码登陆 MySQL,执行:
show databases报错如下:
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement
报错提示告诉我们,需要重新设置密码。那我们就重新设置一下密码,命令如下:
set password = password('123456');这次,我们在再次执行
show databases就没有问题了。
2AADB416-4F1D-48CD-9ED7-02128FEC823E.png附官网资料地址: https://dev.mysql.com/doc/refman/5.6/en/alter-user.html
小礼物走一走,来简书关注我
作者:水冰棍
链接:https://www.jianshu.com/p/53ac2d55b279
來源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
相关文章推荐
- mysql 报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin
- MYSQL 报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin
- mysql 报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing
- MySQL用户密码过期登陆报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
- 【MySQL】ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing
- mysql中ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing t
- [mysql] ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing
- mysql 5.7 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executi
- 第一次登录mysql,使用任何命令都报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
- MySQL5.7 错误:ERROR 1820 (HY000): You must reset your password using ALTER USER statement before ...
- ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
- ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
- 5.7 以后的MYSQL 登录数据库还是报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement be
- ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this st
- ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this ..
- mysql error You must reset your password using ALTER USER statement before executing this statement.
- 错误mac mysql error You must reset your password using ALTER USER statement before executing this stat
- mac mysql error You must reset your password using ALTER USER statement before executing this statem
- mysql ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing t
- mac mysql error You must reset your password using ALTER USER statement before executing this statem