1、使用语句:use mysql;
2、查看user及host:select user,host from user;
3、重新输入命令:ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';
1、使用语句:use mysql;
2、查看user及host:select user,host from user;
3、重新输入命令:ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';