Location of postgresql database on OS X?

后端 未结 6 1546
清酒与你
清酒与你 2021-01-30 21:16

I\'m sure this has been answered but I cannot seem to find an answer.

I installed postgresql using Homebrew (brew install postgresql) which installed to /usr/local/Cella

6条回答
  •  长情又很酷
    2021-01-30 21:53

    Since there are three different libraries in Mac, developers are usually confused with the three scenarios. However, you can find out your PostgreSQL directory with one of the two methods on the Mac Computer.

    1. Directory--Absolute Path

    1). Scroll up your mouse to the left top of Mac Screen

    2). Click the menu "Go"

    3). Select the "Go to Folder..."

    4). Input the path

    /Users/username/Library/Application Support/Postgres

    Please change "username" to your name such as "jack" listed as follows.

    /Users/jack/Library/Application Support/Postgres

    5). Choose the button "Go" to the directory of Postgres.

    You will eventually find out Postgres.

    2. Find the directory step by step

    1). Scroll up your mouse to the left top of Mac Screen.

    2). Click the menu "Go".

    3). Select the button "Library"

    4). Double click the file holder "Application Support".

    5). Find out "Postgres" according to the alphabetic order.

    Cheers,

    Mike

提交回复
热议问题