0
0

More than 3 years have passed since last update.

【MAC】postgreSQL環境構築

Last updated at Posted at 2021-09-05

1.Homebrew

1. インストール。

コマンド
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

2. Password: と出たらmacのパスワード入力。

3. Press RETURN to continue or any other key to abort と出たら Enter

4. 確認。

確認コマンド
brew -v

▶︎ 完了
Homebrew 3.2.10
Homebrew/homebrew-core (git revision 26570f077b; last commit 2021-09-04)出ました。

パスが通ってないよ

内容
Warning: /opt/homebrew/bin is not in your PATH.
解決
export PATH="$PATH:/opt/homebrew/bin"

2 . postgreSQL

1. インストール。

コマンド
brew install postgresql

2. 確認。

確認コマンド
psql --version

▶︎ 完了
psql (PostgreSQL) 13.4

キーチェーンログインパスワードって

デフォルトだと、キーチェーンのパスワードはコンピュータのログインパスワードと同じ。

3 . pgadomin

1. インストール。

コマンド
brew install pgadmin4

2. 確認。

確認コマンド
psql --version
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0