Advertisement
Guest User

Untitled

a guest
May 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. private String dataBase = "locadora";
  2. private String usuario = "root";
  3. private String password = "prschprt";
  4. private Connection con;
  5.  
  6. public Connection getConnection() {
  7. try {
  8. con = DriverManager.getConnection("jdbc:mysql://localhost/" + dataBase, usuario, password);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement