MySQL 8.0

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码';

原文地址:https://www.cnblogs.com/tengrl/p/10620230.html