某项目需要安装mysql
于是去官网下载了mysql8.0版本
启动提示
Connections could not be acquired from the underlying database异常
查了一下:Connections could not be acquired from the underlying database异常,已解决。_杰杰不会hello world的博客-CSDN博客
驱动包与注册驱动类的匹配关系,一般是5版本与8版本
- 5版本的驱动包:注册驱动类为 com.mysql.jdbc.Driver。
- 8版本的驱动包:注册驱动类为 com.mysql.cj.jdbc.Driver。
看了一下配置包里面是mysql-connecto