解决方法 mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'admin123'; mysql> FLUSH PRIVILEGES;