重新设置mysql密码

mysql -uroot -p

use mysql; ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '密码';