Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try{
- Class.forName("com.mysql.jdbc.Driver");
- _connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/testdb?user=root&password=pass&useSSL=false");
- } catch (SQLException ex) {
- System.out.println(ex.getMessage());
- } catch (ClassNotFoundException ex) {
- System.out.println("Class not found: " + ex.getMessage());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement