use mysql; ALTER USER 'root'@'localhost' IDENTIFIED BY '密码'; 因为我的账号是root 然后使用的localhost,不知道的可以select * from user;这样查一下