Mình viết theo ví dụ trên mạng như sau :
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jdbcjava;
import java.sql.DriverManager;
/**
*
* @author Administrator
*/
public class MyJDBCConnect {
String Host ;//Luu thong tin host...