ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
来源:互联网 发布:js 浮点数计算误差 编辑:程序博客网 时间:2024/06/09 17:06
从MySql5.6.6起可以强制用户修改密码。
Session1:先使密码过期
mysql>ALTER USER 'test'@'127.0.0.1' PASSWORD EXPIRE;
Session2:可以继续操作,这个操作不会影响已建立的连接
mysql> select 1 \G
*************************** 1. row ***************************
1: 1
1 row in set (0.01 sec)
Session3:会影响新的连接
mysql -utest -p
Enter password: ******
mysql> show variables like'port'\G;
ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
当出现ERROR 1820 (HY000)这个错误后,用SET PASSWORD 修改当前用户的密码就可以了。
mysql> SET PASSWORD = PASSWORD('123456');
Query OK, 0 rows affected (0.04 sec)
mysql> select 1 \G
*************************** 1. row ***************************
1: 1
1 row in set (0.01 sec)
0 0
- ERROR 1820 (HY000): You must SET PASSWORD before executing this
- ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- mysql:ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- 解决ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- 解决mysql,出现错误 ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- ubuntu14.10下解决"ERROR 1820 (HY000): You must SET PASSWORD before executing this statement"
- ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- mysql密码丢失 ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- MySql5.7 ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- Mysql 密码报错ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- linux mysql 报错ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- mysql安装过程中出现错误 ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- window dos基本操作命令介绍
- hdu 5108
- ucos II 内核学习之三:任务调度
- DRBD
- 授权定位
- ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- 网址链接
- 求二进制数中1的个数
- 生成图-深度优先搜索/宽度优先搜索
- 查看Android应用签名信息
- CExcelManager--操作Excel表格的类
- [DP] 0-1 Knapsack Problem
- 项目管理九大知识领域
- Oracle 加索引、 查看sort_area_size、workarea_size_policy等