连接Docker容器的mysql出现:ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loade
1.报错描述使用navicat连接工具,连接报错如下:2.报错原因说明由于新版本的MySQL新特性导致的,通过查询mysqlmysql>selectHost,User,pluginfrommysql.user;查询结果如上,在老版本里,一般使用加密方式为mysql_native_password,因为认证方式改变导致的。3.解决方案1.进入容器dockerexec-it容器名称/bin/bash2