0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Postgresql&Pgadmin4インストール手順とコマンド

Posted at

Homebrew インストール

$ brew install postgresql

文字コードUTF-8でデータベースの初期化

$ initdb /usr/local/var/postgres -E utf8

PostgresSQlサーバー起動

$ postgres -D /usr/local/var/postgres

ここでPermission deniedのエラーが出た

FATAL: could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied

権限を与える

sudo chmod 1777 /private/tmp
エラー解消された

再びサーバー起動

$ postgres -D /usr/local/var/postgres
動いた

Pgadmin4をインストール

brew install pgadmin4 --cask

Launchpadにアプリが表示
スクリーンショット 2021-07-02 23.53.31.png

参考記事

思いの外エラーで手間取ったので、備忘録として作成

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?