PostgreSQL

Overview

PostgreSQL is a SQL database product comparable to MySQL, most commonly used as the platform for PostGIS, a set of GIS extensions for handling geospatial data. DreamHost does not support PostgreSQL, and it can only be installed on a Dedicated Server. The following instructions show you how to install it.

Make sure you are aware of the following before proceeding:

  • This article contains information/examples using sudo/admin users. If you require sudo/admin access, you must upgrade to a Dedicated Server.

  • You can also install PostgreSQL on a DreamCompute instance after creating a sudo user.

  • DreamHost support is unable to provide any assistance with this configuration.

How do I install PostgreSQL on a Dedicated Server?

To install PostgreSQL:

  1. Use SSH to log in to your Dedicated Server using your admin user.

  2. Run the following commands:

    [server]$ sudo apt-get update
    [server]$ sudo apt-get install postgresql postgresql-contrib
    
  3. To make sure PostgreSQL is working after it's installed, run the following command:

    [server]$ psql --version
    psql (PostgreSQL) 9.1.14
    contains support for command-line editing
    

See also

DreamHost links

Third-party links

This form is only for article feedback. If you require assistance, please contact support. Do not include passwords, account numbers, or other private account details.

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?