I am trying to connect a connector/j driver
to Netbeans.
I am following below steps to connect,
- In services I right click and click new connection.
- then I browse and add
mysql-connector-java-5.1.23-bin.jar
file . - Then click next.
- Then comes a
JDBC url : jdbc:mysql://localhost:3306/mysql
is showing. - I click the test connection button
Then I get the following error:
Cannot establish a connection to jdbc:mysql://localhost:3306/mysql 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.)