mysql8修改登录密码

 

use mysql;

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';

FLUSH PRIVILEGES;

 

posted @ 2024-01-16 11:19  程序员小艺  阅读(9)  评论(0编辑  收藏  举报