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
Try this it's hopeful for you:
Connection con = null; Class.forName("com.mysql.jdbc.Driver"); con =DriverManager.getConnection("jdbc:mysql://localhost/worlddb","root","password");