Below is an example:

yourusername_dbname

Connection connection = null;
Class.forName(”org.gjt.mm.MySQL.Driver”).newInstance();
connection = DriverManager.getConnection(”jdbc: MySQL://localhost/yourusername_dbname?user=&password=”);