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;

时间: 2024-08-11 09:47:07

mac mysql error You must reset your password using ALTER USER statement before executing this statement.的相关文章

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

Mac mySql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)的解决办法

我的环境:Mac 10.11.6 ,mysql  5.7.14  . mac mySql 报错ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 这个错是链接时报的错,要链接必须启动.修复的时候首先要启动mysql. 首先来了解一下 mysql.sock的作用: Mysql有两种连接方式: (1),TCP/IP (2),socket 对mysql.sock来说,其

【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 USE

今天在mac上新安裝了mysql 5.7.出了几个小问题如下: 不要下最新的,安装其他版本出现不兼容的问题.我开始的时候使用mysql8.0做实验,程序怎么也运行不起来,然后看程序log,才发现是版本不兼容的问题,mysql版本过高. 安装完成之后没有启动,用ps -ef|grep mysql 发现没有进程,重新启动电脑,然后就好了. 新安装的mysql,初次使用的时候提示:You must reset your password using ALTER USER statement befor

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

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