Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Connection getDbConnection() throws SQLException
- {
- // Read RDS connection information
- // TODO: Move this to a properties file
- String dbName = "BigVisionGames";
- String userName = "";
- String password = "";
- String hostname = "eu-west-2.rds.amazonaws.com";
- String port = "3306";
- String jdbcUrl = "jdbc:mysql://" + hostname + ":"
- + port + "/" + dbName + "?user=" + userName + "&password=" + password;
- System.out.println("DB Connection opened");
- return DriverManager.getConnection(jdbcUrl);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement