如图:
报错信息:2059 - Authentication plugin ‘caching_sha2_password’ cannot be loaded: dlopen(…/Frameworks/caching_sha2_password.so, 2): image not found
解决方案:
将 MySQL 8.0 的身份认证插件改回为 mysql_native_password
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '这里填写你的新密码';
再进行权限刷新:
FLUSH PRIVILEGES;