daily pastebin goal
12%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // --- connect to database - start ---
  2.     try {
  3.       Class.forName("com.mysql.jdbc.Drvier");
  4.    
  5.       this.connection = DriverManager.getConnection("jdbc:mysql://" + host + "/" + databse, username, password);
  6.       System.out.println("Database connection established.");
  7.     }
  8.     catch(Exception e) {
  9.       System.err.println("Cannot connect to database server!");
  10.     }
  11.     // --- connect to database - end ---
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top