MySQL You must reset your password using ALTER USE

今天在mac上新安裝了mysql 5.7。出了几个小问题如下:

  • 不要下最新的,安装其他版本出现不兼容的问题。我开始的时候使用mysql8.0做实验,程序怎么也运行不起来,然后看程序log,才发现是版本不兼容的问题,mysql版本过高。

  • 安装完成之后没有启动,用ps -ef|grep mysql 发现没有进程,重新启动电脑,然后就好了。
  • 新安装的mysql,初次使用的时候提示:You must reset your password using ALTER USER statement before executing this statement.

赶紧上网查了查,解决办法如下:

SET PASSWORD = PASSWORD(‘你的新密码‘);
ALTER USER ‘root‘@‘localhost‘ PASSWORD EXPIRE NEVER;
FLUSH PRIVILEGES;

问题就解决了~

原文地址:https://blog.51cto.com/9681602/2371533

时间: 2024-11-05 20:23:44

MySQL You must reset your password using ALTER USE的相关文章

安装完绿色版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

Mac 安装 MySQL 5.7 后登入后无法执行命令【You must reset your password using ALTER USER statement before executing this statement.】

今天在 Mac 上安装了 MySQL 5.7 ,启动服务后,输入 mysql -u root -p 后,输入初始密码程,尝试执行 show databases; 报了一个 You must reset your password using ALTER USER statement before executing this statement. 错误. 参考 Stack Overflow 上一篇文章 https://stackoverflow.com/questions/33467337/re

【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

mysql数据库问题———登录进去无法操作显示You must reset your password using ALTER USER statement before executing this statement

linux操作mysql数据库,可以登陆进去,但是操作所有命令都显示You must reset your password using ALTER USER statement before executing this statement,并且使用alter修改密码时,显示密码不符合权限 很多方法都没用,也不知道出了什么问题,我选择利用跳过密码登录后再次修改密码 解决过程: 1.编辑/etc/my.cnf 在[mysqld] 配置部分添加一行 skip-grant-tables 2.保存后重

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

mac mysql error You must reset your password using ALTER USER statement before executing this statement.

安装完mysql 之后,登陆以后,不管运行任何命令,总是提示这个 step 1: SET PASSWORD = PASSWORD('your new password'); step 2: ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER; step 3: flush privileges;

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 5.7 版本 You must reset your password using ALTER USER statement before executing this statement报错处理

https://blog.csdn.net/muziljx/article/details/81541896 MySQL版本5.7.6版本开始的用户可以使用如下命令: mysql> ALTER USER USER() IDENTIFIED BY 'Xiaoming250'; 个别使用者为了后期麻烦,会将密码过期功能禁用,命令如下: ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER; 原文地址:https://www.cnblogs.com/A