一、问题描述
- 异常信息:
java.sql.sqlException: Connections could not be acquired from the underlying database
二、原因排查
三、解决方案
去官网下载其他版本的驱动即可。最好是MysqL版本和驱动版本一致。
- 下载驱动时,主要注意两点
- 选择
Platform Independent
版本的驱动 - 下载版本和MysqL服务器一致的版本号
- 选择
四、反思总结
- 开发中,最好选择版本一致的软件、驱动,避免不必要的麻烦。遇到问题能很快解决还好,一旦停滞,影响了进度和心情就得不偿失啦。