C.a.druid.pool.druidabstractdatasource: discard long time none received connection
Make a simple record~
Many posts on the Internet say that there are about two ways to solve it:
1. Class file configuration, add configuration (invalid here)
@PostConstruct public void init(){ // discard long time none received connection System.setProperty("druid.mysql.usePingMethod", "false"); }
2. The MySQL version has been adjusted accordingly (it is also invalid for me)
3. Add: – dduid.Mysql.Usepingmethod = false (valid) in the operation parameters
nohup java -Ddruid.mysql.usePingMethod=false -jar user-0.0.1-SNAPSHOT.jar --server.port=9092 >user.out &
Similar Posts:
- [Solved] Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
- SSM Project Error: java.sql.SQLException: Access denied for user ‘????…§’@’localhost’ (…
- Org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
- ERROR 2006 (HY000): MySQL server has gone away No
- ERROR 1040 (08004): Too many connections
- [Solved] Springboot Project Connect MYSQL Error: Establishing SSL connection without server’s identity verification is not recommended.
- How to Solve Navicat Remote Connection to MySQL is Stuck
- Mysql Cannot get a connection, pool error Timeout waiting for idle object
- How to Solve MYSQL Error: pymysql.err.InterfaceError: (0, ”)
- Linux encountered a problem when installing RPM package error:Failed dependencies Solution method