Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try{
- Class.forName("org.postgresql.Driver");
- c = DriverManager
- .getConnection("jdbc:postgresql://localhost:5432/postgres","postgres","12345");
- } catch (Exception e){
- e.printStackTrace();
- System.err.println(e.getClass().getName()+": "+e.getMessage());
- System.exit(0);
- }
- System.out.println("ACCESO TOTAL A LA BASE DE DATOS");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement