Member-only story

Install PostgreSQL 14.7 on macOS

Mehdi Lotfinejad
5 min readAug 17, 2024

In this guide, you will learn how to set up PostgreSQL 14.7 on your MacBook using Homebrew, a widely-used package manager for macOS. The steps are straightforward and include:

  1. Install Homebrew
  2. Install PostgreSQL
  3. Download the Northwind PostgreSQL SQL file
  4. Create a New PostgreSQL Database
  5. Import the Northwind SQL file
  6. Verify the Northwind database installation
  7. Connect to the Database Using Jupyter Notebook

Prerequisites

Ensure you have a MacBook or iMac running macOS 10.13 or later.

Install Xcode Command Line Tools
To start, you need to install the Xcode Command Line Tools, which are essential for software development on your Mac.

  1. Open the Terminal app (located in Applications > Utilities) and enter the command:
xcode-select --install

2. A pop-up window will prompt you to install the Command Line Tools. Click “Install” to proceed. After installation is complete, move on to the next step.

Step 1: Install Homebrew

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Mehdi Lotfinejad
Mehdi Lotfinejad

No responses yet

Write a response