So I\'m having an issue connecting to MySQL with Java. Heres my code:
import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException
In the above code, port number is missing.
connection = connection=DriverManager.getConnection("jdbc:mysql://localhost:3306/worlddb","root", "password");
default port number of mysql is 3306