How to install Ubuntu on PostgreSQL?

Direct use apt to install:

sudo apt update
sudo apt install postgresql postgresql-contrib

After installation, the connection using the default user postgres postgres default database.

  1. Linux users switch to postgres

    south something Postgres

  2. Login psql

    psql

This opens the postgres database.

As can be seen from the above operation, Postgres installation, is created automatically:

  1. Linux system user postgres
  2. postgres database user
  3. postgres database

And when you use the database user login psql, it will automatically open the database with the same name as the user.

He published 197 original articles · won praise 88 · views 580 000 +

Guess you like

Origin blog.csdn.net/henryhu712/article/details/104104412