介绍
mysql 5.7.11 的
mysql.user
表使用变了.
password
字段弃用了- 添加了
plugin
,authentication_string
两个字段 plugin
是加密插件类型authentication_string
是存储的密码- 据说影响mysql 5.7.6 以后的版本
- 创建,授权用户时,使用 identified by 创建的密码会存在
plugin
字段
// 查看用户的重要数据
select user,host,password,plugin,authentication_string from mysql.user;
bug
1524 plugin ‘*FF……’ is not loaded
- 存在
plugin
字段的密码 复制到authentication_string
字段
// 修改的SQL 密码时加密过的(这里用 ‘*FF….’ 代表)
update mysql.user set authentication_string = ‘*FF……’ where user =’root’;
// 这个命令使配置生效(很重要)
flush privileges;