WIN+R
输入services.msc
mysql -uroot -p
--输入密码
use mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码';