解决方法: use mysql;ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '复杂一点的密码'; flush privileges; 相关文章: