How to Install PostgreSql in Mac M1/M2 | Configure and Install 2023

Опубликовано: 14 Октябрь 2024
на канале: Prashant Rana
32,140
413

In this Video, We're going to see How We Can Download & install PostgreSQL 15 on MAC OS M1/M2 Machines.

Postgresql Website - https://www.postgresql.org/

To Download the PostgreSQL Installer URL - https://postgresapp.com/downloads.html

After Downloading and Copying the PostgreSQL.app in Applications Folder.

MySQL Commands -
First We Need to Open the Terminal and Write PostgreSQL Config Command - sudo mkdir -p /etc/paths.d &&
echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp

Now Close the Terminal. And Open Again

Command to Check Databases - \list
PostgreSQL Command to Create Database - create database database_name;
Use Specific Database - \c database_name;

#postgresql #pgadmin #sql