mac mysql error You must reset your password using ALTER USER statement before executing this statem
2016-05-19 11:37
627 查看
安装完 mysql 之后,登陆以后,不管运行任何命令,总是提示这个
Step 1:
Step 2:
Step 3:
完成以上三步退出再登,使用新设置的密码就行了
参考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
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分表的三种方法
- [mysql]数据库复习
- mysql 语句执行顺序
- MySQL 创建自定义函数
- mysqldump的实现原理
- mysql 删除重复数据
- mysql索引总结----mysql 索引类型以及创建
- 彻底卸载mysql
- python2代码中的mysqldb转python3 用pymysql
- 转载---Mysql常用命令详解
- mysql出现innodb缺失错误 #1286
- mysql 主从同步故障解决 Error 'Row size too large (> 8126).
- Mysql主从配置,实现读写分离
- 让MySql支持Emoji表情存储
- 更改在 Ubuntu 的 Mysql 密碼
- mysql in 子查询 效率慢 优化(转)
- mysql按字段根据某条件去重 nohup挂后台无法输出日志 系统时间查询 2016.05.18回顾
- mysql索引学习
- mysql配置文件
- MySQL Show命令的使用