Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Connection cc;
- public Statement stm;
- public ResultSet rr;
- public void Class() {
- try {
- Class.forName("com.mysql.jdbc.Driver");
- cc = DriverManager.getConnection("jdbc:mysql://69.89.31.241:2083/table", "user", "pass");
- JOptionPane.showMessageDialog(null, "Connection Ok");
- } catch (Exception e) {
- System.out.println(e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement