PostgreSQL Database

This example discusses how to connect Tableau to a PostgreSQL database.
  1. Select Data > Connect to Data to open the Connect to Data page.
  2. Select PostgreSQL.
  3. Follow the steps in the PostgreSQL Connection dialog box to complete the connection.
    1. Step 1 – Type the name of the server that hosts the database.
    2. Step 2 – Enter the database name that you want to connect to.
    3. Step 3 – Enter your username and password to log on to the server.
    4. Step 4 – Test the connection.
      If the connection is successful, Tableau will alert you. If the connection is unsuccessful, verify that your user name and password are correct. If the connection continues to fail, your computer is having trouble locating the server. Contact your network administrator or database administrator.
    5. Step 5 – Select a table or view from the database.
      PostgreSQL databases can contain multiple tables and views. Specify which table or view within the database you want to connect to. You can also connect to multiple tables or a specific query by selecting the Multiple Tables and Custom SQL options.
    6. Step 6 – Give the connection a name for use in Tableau.
      Specify a unique name for the connection. The default name is automatically generated based.
A completed Connection dialog box for PostgreSQL is shown below.

No comments:

Post a Comment