mac下MySql启动链接报错:Authentication plugin ‘caching_sha2_password’ cannot be loaded: dlopen(/usr/local/mysql/lib/plugin/caching_sha2_password.so, 2): image not found。mysql
问题:在链接数据库时不能加载‘caching_sha2_password’这个插件,也就是不能对身份验证。sql
解决方案:数据库
1.打开系统偏好设置,找到mysql,点击Initialize Database.插件
2.输入你的新密码,记住这个密码,用于后期连接数据库的登录使用.blog
3.选择‘Use legacy password‘.it
4.重启mysql服务.
io