Problem description
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
Solution
Option 1 Tomcat VM configuration parameters: – DJava. Net. Preferipv4stack = true
Option 2 ① Nginx configuring agent MySQL:
② Modify database connection: spring. Datasource. Url = JDBC: mysql://localhost:9999/demo?characterEncoding=utf8
Reference from:
https://blog.csdn.net/baidu_21349635/article/details/121032229
https://adong.blog.csdn.net/article/details/111501253
Read More:
- Communication link failure when connecting Doris
- Solution of visdom startup failure in Windows 10
- SQL Error: 0, SQLState: 08S01 & Communications link failure
- Link: fatal error lnk1123: failure during conversion to coff: file in
- Error in the project tag in the POM file of Maven project: failure to transfer
- Solution to inaccessibility of Vue cli scaffold project after startup
- Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure (How to Fix)
- Idea startup project Lombok error, no symbol found
- Idea startup prompt failed to create jvm: error code -1 jvm path solution
- Idea startup project: main class not found or cannot be loaded
- Sqoop import error communications link failure
- Mysql database error (communications link failure)
- Idea update failure problem: couldn’t save uncommitted changes solution
- When executing hive – f script com.mysql.jdbc . exceptions.jdbc4 .CommunicationsException: Communications link failure
- Idea | change the default configuration of idea to open a new project
- Resolve the exception MySQL lontransientconnectionexception: communications link failure during rollback()
- How to create JSP project in new version after idea2020
- Solution to error 2002 (HY000) in MySQL login startup
- Port out of range: – 1 for Tomcat startup in idea
- Resolve nginx startup failure