Advertisement
mhdew

Untitled

Aug 19th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. try
  2. {
  3. Class.forName("com.mysql.cj.jdbc.Driver");
  4. con=DriverManager.getConnection("jdbc:mysql://localhost:3306/routinefinder","root","" );
  5. System.out.println("Connected");
  6. }catch(Exception ex){
  7.  
  8. System.out.println("Not Connected");
  9. // System.out.println(ex);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement