Your password has expired. To log in you must change it using a client that supports expired passwords
msyql 5.7.11版本安装
mysql生成的root的临时密码是
2016-05-10T10:05:47.421912Z 1 [Note] A temporary password is generated for root@localhost: v:gNXSw5FTkw
使用
mysql -u root -p v:gNXSw5FTkw 提示(中间重启的一次mysql,可能是重启的原因,正常情况下是可以登录的)
Your password has expired. To log in you must change it using a client that supports expired passwords
在stackoverflow找到了解决方法,连接地址:http://stackoverflow.com/questions/33387879/mysql-password-expired-cant-connect
解决办法:
[root@localhost bin]# ./mysqladmin -uroot -p password
Enter password: //这里输入上面的v:gNXSw5FTkw
New password: //重新输入新密码
Confirm new password: //重新输入新密码
问题解决!