标签:mysql
mysql5.7安装上后,会生成随机密码,登录时需要查看cat /var/log/mysqld.log ,
里面有随机生成的密码
[Note] A temporary password is generated for root@localhost: 2Hh,uKryPJ-k
登录成功后,会强制要求先改密码
修改密码会报错
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
原因是mysql增强了安全性,对密码要求较严格
alter user ‘root‘@‘localhost‘ identified by ‘2HhuKryPJ-k‘;
本文出自 “青春邓勇” 博客,请务必保留此出处http://dengyong.blog.51cto.com/8409869/1855841
标签:mysql
原文地址:http://dengyong.blog.51cto.com/8409869/1855841