Java JDBC MySQL Connection getRssminerDB()

Here you can find the source of getRssminerDB()

Description

get Rssminer DB

License

Open Source License

Declaration

public static Connection getRssminerDB() throws SQLException 

Method Source Code

//package com.java2s;

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

import java.sql.SQLException;

public class Main {
    static String JDBC_URL = "jdbc:mysql://localhost/rssminer?cachePrepStmts=true&useServerPrepStmts=true";

    public static Connection getRssminerDB() throws SQLException {
        Connection con = DriverManager.getConnection(JDBC_URL, "feng", "");

        return con;
    }/*from   w w w.java 2 s  .c o m*/
}

Related

  1. getMySQLConnection(String cloudSqlInstance, String dbName, String userName, String password)
  2. getMySQLConnection(String hostname, String databaseName, String dbuser, String dbpasswort)
  3. getMySQLConnection(String hostName, String dbName, String userName, String password)
  4. getMysqlIndices(String conString)
  5. getNewDatabaseConnection(String dbUser, String dbPassword)
  6. getSearchReaderConnection()
  7. openConnection()
  8. putData(int tID, String toolID)
  9. query(String sql)