Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- Connection cn = null;
- try {
- Class.forName("com.mysql.jdbc.Driver");
- cn = DriverManager.getConnection(
- "jdbc:mysql://localhost:3306/northwind?useSSL=false"
- , "root", "c0nygre");
- System.out.println("Connection OK :)");
- }
- catch(SQLException | ClassNotFoundException e) {
- System.out.println("OOPS :(" + e.getMessage());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement