Example 6: Setting up a connection via RedShift

Assume that:

For details about how to install RedShift, refer to http://docs.aws.amazon.com/redshift/latest/dg/c_intro_to_admin.html.

Take the following steps to set up a connection which connects JReport Designer to a database via RedShift:

  1. Start JReport Designer and open the catalog.
  2. In the Data tab of the Catalog Browser, expand the node of the default data source, right-click the Relational node and select Add JDBC Connection from the shortcut menu.
  3. In the Get JDBC Connection Information dialog, uncheck the Use ODBC Data Source option.
  4. Check the Driver checkbox, and enter the JDBC driver class name org.postgresql.Driver in the Driver text field.
  5. In the URL text field, specify the URL as jdbc:postgresql://jinfonet-rsdw-demo.cfcn5ogc14yr.us-east-1.redshift.amazonaws.com:5439/sampledb.
  6. Input the user name dbadmin and password test1234 respectively.
  7. Click OK to set up the connection.

Notes: