Article From:

org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)

I did it before I changed it to localhost

Now the server is not a server with the database

Can only be connected with a domain name

The result appears again

Answer 0:

mysqlThe default is only local connection, and the configuration file needs to be changed.

Leave a Reply

Your email address will not be published. Required fields are marked *