I am trying to connect a
JDBC url : jdbc:mysql://localhost:3306/mysql
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.)
I've personally had this problem too. Netbeans sometimes has problems dealing with MySQL. I would suggest you download MySQL Community Server and MySQL Workbench and use those to run your database. It's much more efficient and gives you more control over your database.