OperationalError: (_mysql_exceptions.OperationalError) (2059, "Authentication plugin 'caching_sha2_password'

mysql8的坑,修改root用户的密码类型就行了

ALTER USER 'root'@'localhost' IDENTIFIED with mysql_native_password BY 'root' PASSWORD EXPIRE NEVER;
flush privileges;
原文地址:https://www.cnblogs.com/c-x-a/p/12626228.html