Java JDBC MySQL Connection getDMPConn()

Here you can find the source of getDMPConn()

Description

get DMP Conn

License

Apache License

Declaration

public static Connection getDMPConn() throws ClassNotFoundException, SQLException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Main {
    public static Connection getDMPConn() throws ClassNotFoundException, SQLException {
        Class.forName("com.mysql.jdbc.Driver");
        return DriverManager.getConnection(
                "jdbc:mysql://192.168.3.101:3306/DMPDATA?useUnicode=true&characterEncoding=UTF-8", "DMPUSER",
                "DMPUSER");
    }//from w w w .  j  a v  a2s. c  o m
}

Related

  1. getDbConnection()
  2. getDBConnection()
  3. getDBConnection(String database)
  4. getDBConnection(String dbServer, String dbName, String dbUser, String dbPass)
  5. getDBConnection(String urlFormat, String host, Integer port, String database, String user, String password)
  6. getGoogleCloudDBConnection()
  7. getIonMassList()
  8. getJdbcConnection(String host, int port, String name, String user, String password)
  9. getJtdsConnection()