Advertisement
Guest User

Untitled

a guest
Apr 20th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. try {
  2. Class.forName("com.mysql.jdbc.Driver");
  3. Connection connect = DriverManager.getConnection("jdbc:mysql://10.10.16.30/employees?" + "user=admin&password=admin");
  4. System.out.println("Connection succesfull");
  5. } catch(Exception ex) {
  6. ex.printStackTrace();
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement