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;
posted @ 2020-04-03 14:17  公众号python学习开发  阅读(544)  评论(0编辑  收藏  举报