慕码人6223925
2018-05-21 14:12
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
### The error may exist in file [/Users/cn40258/demo/target/classes/mapper/AreaDao.xml]
### The error may involve com.imooc.demo.dao.AreaDao.queryArea
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
同学好,请检查你的数据库版本与驱动的兼容性,建议你使用5.X数据库版本,现在感觉你用了8.0
Connections could not be acquired from the underlying database!
能不能支持我下,帮我解决下,万分感谢,谢谢!
我的mysql版本是5.0.22的驱动试了的是5.0.4以及5.1.34版本的,为什么还是报
Caused by: java.sql.SQLException: No suitable driver
同遇到了这个问题,感谢老师的回答,我导入了8.0的jar包,而我mysql的版本是5.62的应该用5.1的jar包,去官网(https://dev.mysql.com/downloads/connector/j/) 下载的话要点一下边上的 Looking for previous GA versions? 才能下载到5.1的版本。
谢谢,问题已解决~
SpringBoot+MyBatis搭建迷你小程序
91500 学习 · 621 问题
相似问题