第一次加入驱动器的时候,报错 Client does not support authentication protocol requested by ser...
原因是驱动器版本太低了,你可能安装的是MySQL8及其以上版本
需要下载相匹配的驱动器:downloads.mysql.com/archives/c-…
网站下载 Platform Independent 选项(我的电脑是Mac ARM64芯片)
选择ZIP Archive下载
打开下载文件夹找出.jar结尾的文件导入idea
Java代码修改为 Driver driver = new com.mysql.cj.jdbc.Driver();
问题解决✌️