1
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 5 years have passed since last update.

macにHomebrewでpostgresqlをインストール

Posted at

環境

mac
Homebrew インストール済み

インストール

brew install postgresql

バージョン確認

psql --version

psql (PostgreSQL) 10.1

自動起動設定

brew services start postgresql

自動起動状況確認

brew services list

自動起動の停止

brew services stop postgresql

データベース作成

createdb test

データベース接続

psql test

テーブル作成

create table test_table (id integer not null,name varchar(20),primary key(id));

参考

https://qiita.com/uhooi/items/cd6256a72c6a03621c09
http://t-shimohara.com/pc/postgressql
https://qiita.com/gooddoog/items/1f986c1a6c0f253bd4e2

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?