The driver for oracle (the onlyone I've used) is called using:
String connectStr = "jdbc:oracle:.........";
Connection conn = DriverManager.getConnection(connectStr);
I'd imagine you'd just change the connectStr to have 'mysql' instead of 'oracle'.
Your jdbc driver should have this sort of thing in the documentation that came with it, or on the MySQL website, here: