LoginSignup
1
0

More than 3 years have passed since last update.

はじめてのPostgreSQL

Last updated at Posted at 2019-10-12

この記事が対象とする読者

  • PostgreSQLをはじめて使う人

Homebrewを使ったインストールの仕方を簡潔にまとめます。

インストールの流れ

1. ターミナルからインストール

まずは、以下のコマンドを入力・実行します。

$ brew install postgresql

2. インストールの確認

正常にインストールできているかどうかを確認します。
バージョンを表す-Vは大文字なので注意です。

$ postgres -V
postgres (PostgreSQL) 11.5

3. PostgreSQLを起動

データベースとして使用するためには以下の起動のコマンドも必要です。

$ brew services start postgresql
==> Successfully started `postgresql` (label: homebrew.mxcl.postgresql)

ここまで完了すればデータベースが作成できるようになるはずです!

さいごに

PostgreSQL初心者による初心者のためのQiitaでした。
簡単な工程なのですが、検索しながらやっていたら迷ってしまったので共有しておきます。少しでも参考になればうれしいです。

1
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
1
0