0

I wanted to use Hibernate, so I created a MySQL datasource by database of IntelliJ IDEA. But I got a problem that "connection to MySQL" failed.
I did not change any default setting and just added "demo" as database name.
Here is the description of the problem returned by IntelliJ IDEA.

Connection to MySQL - demo@localhost failed.
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.
(4s)

Sorry but there is no further information about the problem.
I granted IntelliJ IDEA the permission to access Internet since I can download packages via Maven dependencies, so probably there is not any problem with my Internet.

Quentin Liu
  • 141
  • 1
  • 10

0 Answers0