java.sql.SQLException: Created a new connection but it failed its test
2017-05-15 09:47
411 查看
有一个是测试sql
看数据源配置的地方才知道有这么一项配置:house-keeping-test-sql 或者是其他的他test sql
复制这个sql去执行sql的工具看是否能够执行 如果不能执行一般是表不存在 或者是执行sql获取当前时间的函数不是你用的数据库支持的方法(mysql 跟oracle sql server 等函数不一样)
看数据源配置的地方才知道有这么一项配置:house-keeping-test-sql 或者是其他的他test sql
复制这个sql去执行sql的工具看是否能够执行 如果不能执行一般是表不存在 或者是执行sql获取当前时间的函数不是你用的数据库支持的方法(mysql 跟oracle sql server 等函数不一样)
相关文章推荐
- java.sql.SQLException: Created a new connection but it failed its test
- java.sql.SQLException: Connection has already been created in this tx context for pool named ...
- Hive 笔记异常(java.sql.SQLException: Unable to open a test connection to the given database. JDBC url =)
- java.sql.SQLException:Row insert failed.
- ssi批量增加java.sql.SQLException: Connection is closed.
- java.sql.SQLException: The Network Adapter could not establish the connection
- java.sql.SQLException: IO 错误: The Network Adapter could not establish the connection
- 错误:created a ThreadLocal with key of type ……but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
- nc开发:java.sql.SQLException: xa(bmt) connection pool is full? max=3,init=1,now=4、
- java.sql.SQLException: nontx connection pool is full?
- 关于struts2 ajax报java.sql.SQLException: 访问层需要具体实施: getConnectionPoolInfo
- java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
- java.sql.SQLException: ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
- (java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection)
- java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection解决方案
- Prototyper.java:98 :ERROR] Prototype java.sql.SQLException: Network error IOException: Connection
- c3p0 java.sql.SQLException: Connection is invalid
- 发现造成java.sql.SQLException: No suitable driver found for proxool.test的原因
- java.sql.SQLException: The Network Adapter could not establish the connection
- java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection可能问题之一