安装完绿色版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 befo
re executing this statement.

参考:http://dev.mysql.com/doc/refman/5.6/en/alter-user.html

直接执行:set password=password(‘密码‘);

搞定!!!

时间: 2024-08-26 17:43:00

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

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

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

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 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,成功

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 报错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 5.7 ERROR 1820 (HY000):

在首次登录Mysql 5.7 后,mysql数据库做出了很多的调整.执行大部分操作会提示这个错误 : ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. 这个错误,是因为Mysql 5.7 要求更新默认密码的规则导致的.初次登录Mysql要求更新root用户密码. 可以通过以下SQL 来调整: set password=passwo

linux - mysql 异常:ERROR 1820 (HY000): You must SET PASSWORD before executing this statement

问题描述 ERROR 1820 (HY000): You must SET PASSWORD before executing this statement 备注:新安装完数据库后,在 xshell 上登录 mysql 后,运行 SQL 语句报如上错误 解决方案一 # /etc/init.d/mysql stop // 关闭 mysql # mysqld_safe --user=mysql --skip-grant-tables --skip-networking & # mysql -u ro

【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 password using ALTER USER statement before executing this statement. mysql> use mysql; ERROR 1820 (HY000): You must reset your password using ALTER USER