SHARE
TWEET

Untitled

a guest Oct 3rd, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.mccauley.main;
  2.  
  3. import java.sql.*;
  4.  
  5. public class fuku
  6. {
  7.     static final String DB_URL = "jdbc:mysql://localhost/db_main";
  8.  
  9.     static final String USER = "db_admin";
  10.     static final String PASS = "fkEl2g09=glT";
  11.  
  12.     public static void main(String[] args)
  13.     {
  14.         try
  15.         {
  16.             Connection conn;
  17.             conn = DriverManager.getConnection(DB_URL,USER,PASS);
  18.        
  19.             System.out.println("Connected");
  20.         }
  21.         catch(Exception e)
  22.         {
  23.             System.out.println(e);
  24.         }
  25.     }
  26. }
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