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=password(‘密码‘);

操作完成后,即可进行其他操作。

另外,Mysql 5.7 默认要求强密码。关于密码规则请参阅:

原文地址:https://www.cnblogs.com/halberd-lee/p/8538556.html

时间: 2024-10-28 11:23:43

mysql 5.7 ERROR 1820 (HY000):的相关文章

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

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 报错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

[转]MySQL远程连接ERROR 2003 (HY000):Can't connect to MySQL server on'XXXXX'(111) 的问题

装了个navicat ,然后去连接mysql服务器,一直连不上,一开始以为是防火墙问题,后来防火墙都关闭, iptable服务关闭,还是不行,网上查了下:主要是因为设置了bind_address=127.0.0.1 原文引用: 问题描述: 从一台linux远程连接另一台linux上的MySQL, 出现ERROR 2003 (HY000): Can't connect to MySQL server on 'xxx.xxx.xxx.85'(111)错误. [mysql@vvmvcs0 ~]$ my

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

Centos 7 安装mysql后出现 ERROR 2002 (HY000)解决方案

Centos 7 安装mysql后出现 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 切换成root, systemctl start mariadb.service systemctl enable mariadb.service

Mysql错误问题:ERROR 1005 (HY000): Can't create table 'crm_1.tbl_client' (errno: 150)

MySQL外键创建条件: 1.两个表必须是InnoDB数据引擎2.外键表的外键字段必须是主键3.字段类型必须一致 创建表时创建外键: create table tbl_client(userName varchar(255) not null, address varchar(255), createDate timestamp not null default now(), createUserName varchar(255), foreign key(createUserName) ref