Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Installing PostgreSQL on Mac OS

Installing PostgreSQL on Mac OS

Use EnterpriseDB to download and install. EnterpriseDB is the only company in the world providing enterprise-grade products and services based on PostgreSQL.

Download address:https://www.enterprisedb.com/downloads/postgres-postgresql-downloads。

Download the postgresql-****-osx.dmg file and double-click the installer:

You will be asked to enter the administrator password; just enter it, and then the installation wizard appears:

Next are some basic configurations, such as installation directory, extension installation, database directory, user password, port settings, etc.; generally the defaults are fine, just click Next:

Finally, just click Finish:

Run the following script to start PostgreSQL.

For the following options you can enter your own values or use the defaults — just press Enter for defaults; for the password, enter the one you set during installation:

$ /Library/PostgreSQL/11/scripts/runpsql.sh ;exit

Server [localhost]: 

Database [postgres]: 

Port [5432]: 

Username [postgres]: 

Password for user postgres: 

psql (11.3)

Type "help" for help.



postgres=# 

pgAdmin 4

Open pgAdmin 4:

Or click the elephant icon in the upper right of the screen:

The pgAdmin home page is as follows

**Click Servers > Postgre SQL 10 on the left **

Enter the password and click OK

The control panel is as follows