0
点赞
收藏
分享

微信扫一扫

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

场景

安装后首次运行mysql命令报错误:

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


修改密码

mysql> alter user user()  identified by ‘admin@123456’;

Query OK, 0 rows affected (0.03 sec)


mysql>flush privileges ;

Query OK, 0 rows affected (0.01 sec)


授权远程访问

mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'admin@123456' WITH GRANT OPTION;

mysql>flush privileges ;

Query OK, 0 rows affected (0.01 sec)

举报

相关推荐

0 条评论