codice:
        String MYSQL_HOST = "localhost";
	String MYSQL_DB	  = "test";
	String MYSQL_USER = "root";
	String MYSQL_PWD  = "";
	
        // caricamento driver
	Class.forName("com.mysql.jdbc.Driver"); 
        // ottieni la connessione
        conn = DriverManager.getConnection ("jdbc:mysql://" +
        MYSQL_HOST + "/" + MYSQL_DB + "?user=" + MYSQL_USER +
        "&password=" + MYSQL_PWD);
Assicurati che il driver sia caricato nel classpath a tempo di esecuzione