MySQL 5.7root用户密码修改

  |   0 评论   |   958 浏览

在MySQL 5.7 password字段已从mysql.user表中删除,新的字段名是“authenticalion_string”.

选择数据库:use mysql;

更新root的密码:

update user set authentication_string=password('新密码') where user='root' and Host='localhost';

flush privileges;

标题:MySQL 5.7root用户密码修改
作者:jackssybin
地址:https://jackssybin.cn/articles/2020/12/16/1608097523728.html

评论

发表评论


取消