1、alter user 'root'@'localhost' identified with mysql_native_password by '******'; 2、flush privileges;