alter user 'root'@'localhost' identified with mysql_native_password by '123456';
flush privileges;
错误原因在于数据库版本插件不同,caching_sha2_password(8.~.~),mysql_native_password(5.~.~)
~