Advertisement
Guest User

Untitled

a guest
Apr 13th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public Connection cc;
  2. public Statement stm;
  3. public ResultSet rr;
  4.  
  5. public void Class() {
  6.  
  7. try {
  8. Class.forName("com.mysql.jdbc.Driver");
  9. cc = DriverManager.getConnection("jdbc:mysql://69.89.31.241:2083/table", "user", "pass");
  10. JOptionPane.showMessageDialog(null, "Connection Ok");
  11. } catch (Exception e) {
  12. System.out.println(e);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement