測試時候遇到數據庫連接問題
警告: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@6ad57b45 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (2). Last acquisition attempt exception:?
java.sql.SQLException: Access denied for user '????£?è?“'@'localhost' (using password: YES)
Caused by: org.apache.ibatis.exceptions.PersistenceException:?
### Error updating database.? Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
Caused by: java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
Caused by: com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from?
以上是報錯,大致意思我理解是數據庫連接超時之類的,網上也找過問題,但基本都不是。希望同遇到過該問題的同學可以幫我解答一二
2020-03-09
我也是這個問題