Advertisement
Guest User

Vitto

a guest
Mar 30th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. public void connectDB(){
  2.  
  3. try{
  4. Class.forName("com.mysql.jdbc.Driver");
  5.  
  6. con = DriverManager.getConnection("jdbc:mysql://localhost:3306/atssystem", "root", "Vithurshan96"); // Enter your own url, usernames and passwords here!
  7.  
  8. } catch (Exception e){
  9. System.out.println("No connection");
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement