MySQL5.7 报错 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 executing this statement

需要重新设置密码。那我们就重新设置一下密码,命令如下:

set password = password(‘123456‘);

原文地址:https://www.cnblogs.com/Dev0ps/p/11738557.html

时间: 2024-08-29 02:58:06

MySQL5.7 报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement的相关文章

mysql 5.7密码报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

1.重新修改密码,语句如下: mysql> alter user 'root'@'localhost' identified by '123'; Query OK, 0 rows affected (0.00 sec) 2.如果修改过程出现错误(如下),转后面操作: mysql> alter user 'root'@'localhost' identified by '123'; ERROR 1819 (HY000): Your password does not satisfy the cu

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

解决办法 1. 修改用户密码 mysql> alter user 'root'@'localhost' identified by 'youpassword'; 或者 mysql> set password=password("youpassword"); 2.刷新权限 mysql> flush privileges; 原文地址:https://www.cnblogs.com/ljl-blog/p/11540015.html

安装完绿色版MySQL修改密码:ERROR 1820 (HY000): You must reset your password using ALTER USER statement befo re executing this statement.

mysql> update mysql.user set password=PASSWORD('123456') where User='root';ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. 参考:http://dev.mysql.com/doc/refman/5.6/en/alter-user.html 直接执行:set

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

  报错 在连接mysql执行语句时报错:   解决办法   执行语句: alter user 'root'@localhost identified by 'root'; 这样就可以了.

【Mysql 5.7】ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

1.通过mysql -uroot -p,输入密码登录后,必须马上修改密码,否则会报错 2.将密码修改为123456,依然报错 这和mysql 5.7的密码策略(validate_password_policy)有关,validate_password_policy可以取如下值: 默认为1即MEDIUM,包含长度.数字.英文大小写.特殊字符校验.长度由validate_password_length配置,默认为8. 3.在/etc/my.cnf配置文件中增加 4.修改密码为12345678,成功

mysql 报错ERROR 1820 (HY000):You must resetpassword

今天登录mysql(Server version: 5.7.11) 还是很好的,今天登录后执行任何命令都报下面的错误 mysql> help contentsERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.mysql> help contentsERROR 1820 (HY000): You must reset your pa

mysql报错ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

23:29:02/2017-05-03 现象描述:在Command Line Client可以登陆,但是在命令提示符cmd下登陆出错. 我最终的解决办法是: 我先去看了一下我的my.ini配置文件. 新版5.7的配置文件不是在安装目录,而是在programDat/mysql文件目录下 打开文件之后: 我在安装的时候修改了默认端口3306为8082, 在cmd登陆的时候仍然是默认端口登陆的,所以会报错.那么在登陆的 时候可以指定端口, -P一定要大写. mysql报错ERROR 2003 (HY0

长久不用的mysql报错ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

mac上安装过mysql: 然而,尝试连接时报错: $ mysql -u root -p Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 尝试去查看mysql.socket文件,发现没有.. $ which mysql /usr/local/bin/mysql 然后试试重启mysql: $ mysql.server start

mac 安装mysql 报错“ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/tmp/mysql.sock' (2)” 解决办法

首先安装 homebrew 再 brew install mysql 之后连接 mysql 无论是登录还是修改初始密码都会报如下的错误 ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/tmp/mysql.sock' (2) 运行如下解决:参考 http://www.thinksaas.cn/group/topic/347978/ unset TMPDIR mysql_install_db --v