1、user mysql
2、select user,host,plugin,authentication_string from user;
3、ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123'
4、ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123';
5、FLUSH PRIVILEGES;