mysql error You must reset your password using ALTER USER statement before executing this statement.
2018-01-07 10:03
429 查看
转自点击打开链接
安装完mysql 之后,登陆以后,不管运行任何命令,总是提示这个
step 1: SET PASSWORD = PASSWORD('your new password');
step 2: ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;
step 3: flush privileges;
完成以上三步退出再登,使用新设置的密码就行了,以上除了红色的自己修改成新密码外,其他原样输入即可
参考1: https://dev.mysql.com/doc/refman/5.6/en/alter-user.html
参考2: http://dev.mysql.com/doc/refman/5.7/en/password-expiration-policy.html
参考3: http://stackoverflow.com/questions/33467337/reset-mysql-root-password-using-alter-user-statement-after-install-on-mac
安装完mysql 之后,登陆以后,不管运行任何命令,总是提示这个
step 1: SET PASSWORD = PASSWORD('your new password');
step 2: ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;
step 3: flush privileges;
完成以上三步退出再登,使用新设置的密码就行了,以上除了红色的自己修改成新密码外,其他原样输入即可
参考1: https://dev.mysql.com/doc/refman/5.6/en/alter-user.html
参考2: http://dev.mysql.com/doc/refman/5.7/en/password-expiration-policy.html
参考3: http://stackoverflow.com/questions/33467337/reset-mysql-root-password-using-alter-user-statement-after-install-on-mac
相关文章推荐
- mac mysql error You must reset your password using ALTER USER statement before executing this statement.
- 错误mac mysql error You must reset your password using ALTER USER statement before executing this stat
- MySQL用户密码过期登陆报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
- mac mysql error You must reset your password using ALTER USER statement before executing this statem
- mac mysql error You must reset your password using ALTER USER statement before executing this statement.
- mac mysql error You must reset your password using ALTER USER statement before executing this statem
- 第一次登录mysql,使用任何命令都报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
- mysql5.7 You must reset your password using ALTER USER statement before executing this statement.
- MySQL错误:You must reset your password using ALTER USER statement before executing this statement.
- ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this ..
- ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this st
- mysql 设置不了短串密码怎么办 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 before executing
- mysql 报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing
- 【MySQL】ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing
- mysql中ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing t
- mysql 5.7安装后,出现You must reset your password using ALTER USER statement before executing this stateme
- ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
- mysql error You must reset you ac6f r password using ALTER USER statement before executing this statement.
- 【mysql】You must reset your password using ALTER USER statement before executing this statement.