private static  Connection getConnection(){
	String dbtime=null;
	String dbUrl = "jdbc:mysql://your.database.domain/yourDBname";
	String dbClass = "com.mysql.jdbc.Driver";
	Connection con=null;



		try {
			Class.forName("com.mysql.jdbc.Driver");
			con = DriverManager.getConnection (dbUrl);
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	return con;
	}