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
connection = DriverManager.getConnection("jdbc:mysql://localhost/worlddb?" +"user=root&password=password");
Try this, I have a connection to mysql db with same connection, you just add ? after the name of the db.
?