If the error is reported according to the microservice project: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

Table of contents

1. Scene reproduction

2. Error message

3. Solutions


1. Scene reproduction

Every time the database is restarted, the login system will report an error. For the first time, the user name does not exist, etc., the background will report an error, the front end can still enter, or wait for 5 minutes, do not do any operations during the period, log in again, and the problem will reappear. The fastest way to reproduce this problem The solution is to restart the database.

ruoyi.version:3.6.2

druid.version:1.2.16

2. Error message

18:49:52.611 [http-nio-9201-exec-5] ERROR druid.

Guess you like

Origin blog.csdn.net/qq_19309473/article/details/130349484