0

I want to connect to database that is embedded in NetBeans using this driver: mysql-connector-java-5.1.23-bin.jar(It was preinstalled). However, when I try to do this all I get is this error:

Cannot establish a connection to jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=convertToNull using com.mysql.jdbc.Driver (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've googled it and found this: error when connecting mysql to Java netbeans

There is one solution with editing my.cnf file which I do not know where to find. I use Windows 10 OS and have no idea where etc/my.cnf file can be.

S.Drumble3
  • 59
  • 10

0 Answers0