mysql -u root -p输入密码进入mysql界面执行 ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY ""quit退出重进即可