Guest User

Untitled

a guest
Aug 9th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. String url = "jdbc:postgresql://localhost/meteo";
  2. Properties props = new Properties();
  3. props.setProperty("user","postgres");
  4. props.setProperty("password","wpisz haslo");
  5. props.setProperty("ssl","true");
  6. Connection conn = DriverManager.getConnection(url, props);
  7. String url = "jdbc:postgresql://localhost/test?user=fred&password=secret&ssl=true";
  8. Connection conn = DriverManager.getConnection(url);
Add Comment
Please, Sign In to add comment