MySQL8.0修改root账号的密码

use mysql; --将字段置为空 update user set authentication_string='' where user='root';--修改密码为root ALTER user 'root'@'localhost' IDENTIFIED BY 'root';
MySQL8.0修改root账号的密码
use mysql; 

--将字段置为空

update user set authentication_string='' where user='root';

--修改密码为root

ALTER user 'root'@'localhost' IDENTIFIED BY 'root';2022-07-17
mengvlog 阅读 340 次 更新于 2025-10-30 12:19:42 我来答关注问题0
檬味博客在线解答立即免费咨询

mySQL相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部