The driver for oracle (the onlyone I've used) is called using:
import java.sql.*;
...
...
...
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:
http://dev.mysql.com/doc/connector/j/en/index.html
Dave