org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exc
2014-06-16 22:57
525 查看
在spring整合中出现了 这个错误
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
Unknown character set: 'utf8mb4'
网上查了些资料,说是数据库编码问题,其实不是,是mysql驱动和mysql版本不兼容的问题。
我电脑是mysql 6.0 而用了mysql-connector-java-5.1.18-bin.jar,结果就出现了【'utf8mb4'】这个奇葩的错误。后面网上找了下资料,重新拿了个mysql-connector-java-5.1.7-bin.jar
来,就好了。
其实这个是兼容问题,自己试试几个不同版本的mysql驱动包就好了。
yeah ~ 继续努力~
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
Unknown character set: 'utf8mb4'
网上查了些资料,说是数据库编码问题,其实不是,是mysql驱动和mysql版本不兼容的问题。
我电脑是mysql 6.0 而用了mysql-connector-java-5.1.18-bin.jar,结果就出现了【'utf8mb4'】这个奇葩的错误。后面网上找了下资料,重新拿了个mysql-connector-java-5.1.7-bin.jar
来,就好了。
其实这个是兼容问题,自己试试几个不同版本的mysql驱动包就好了。
yeah ~ 继续努力~
相关文章推荐
- org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exc
- org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons
- ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: An attempt by a client to chec
- Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nes
- org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection
- Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nes
- org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection
- org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection
- org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection;
- org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection
- Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection;
- Oracle数据源:org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection;
- org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection 原因
- org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection解决办法
- org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for
- org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for
- org.springframework.jdbc.CannotGetJdbcConnectionException【无解的jdbc.properties】
- org.springframework.jdbc.CannotGetJdbcConnectionException
- Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Canno