legacy-knowledge-base
Publicado Sep. 25, 2010

Setting Up Liferay Portal on Postgres 9

written-by

Justin Choi

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

This article is a legacy article. It applies to previous versions of the Liferay product. While the article is no longer maintained, the information may still be applicable. 

This article will explain how to create a database in PostgreSQL and configure a Liferay bundle to connect to it. If PostgresSQL hasn't been installed yet, download the relevant file here: http://www.postgresql.org/download/windows/


For detailed setup instructions, visit: Running & Installing PostgreSQL On Native Windows

Resolution

Setting Up a Database

  1. Click start-> PostgreSQL 9.0-> pgAdmin III
  2. In the object browser on the left, double-click the "PostgreSQL 9.0 (localhost:5432)" server.
  3. If a password is requested, enter the password when installing Postgres.
  4. In the object browser, right-click "Databases" and select "New Database"
  5. Select the name for the database, leaving everything else default. Click OK.

Installing Liferay and connecting the database

  1. Create the portal-ext.properties. Enter the following:

    jdbc.default.driverClassName=org.postgresql.Driver
    jdbc.default.url=jdbc:postgresql://{IP Address}:5432/${database name}
    jdbc.default.username=postgres
    jdbc.default.password=${password}

Liferay should populate the PostgresSQL database with Liferay data. The console should display that Postgres is the database engine.

did-this-article-resolve-your-issue

legacy-knowledge-base