use mysql;
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘新密码’; ##新密码即要修改的密码
FLUSH PRIVILEGES;
mysql-8.0.18 修改root 密码
最新推荐文章于 2023-06-30 11:09:22 发布
use mysql;
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘新密码’; ##新密码即要修改的密码
FLUSH PRIVILEGES;