Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String url = "jdbc:postgresql://localhost/meteo";
- Properties props = new Properties();
- props.setProperty("user","postgres");
- props.setProperty("password","wpisz haslo");
- props.setProperty("ssl","true");
- Connection conn = DriverManager.getConnection(url, props);
- String url = "jdbc:postgresql://localhost/test?user=fred&password=secret&ssl=true";
- Connection conn = DriverManager.getConnection(url);
Add Comment
Please, Sign In to add comment