#author("2020-04-14T15:14:40+09:00","default:ryuichi","ryuichi")
#author("2020-04-14T15:16:00+09:00","default:ryuichi","ryuichi")
* Debian 9 [#vf902176]


** インストール [#e2f21166]

 sudo apt update
 sudo apt install postgresql postgresql-contrib

** 動作確認 [#kf1b9562]

 sudo service postgresql start
 sudo -u postgres psql -c "SELECT version();"

** ユーザとそのDBの作成 [#nb309fc2]

*** psqlユーザでPostgreSQLにログイン [#yed6df05]

 sudo -u postgres bash
 psql

*** ユーザとDBの作成 [#ofe2c944]

 CREATE USER taro WITH PASSWORD 'taropass'
 CREATE DATABASE tarodb
 GRANT ALL PRIVILEGES ON DATABASE tarodb TO taro

** 参考 [#z4b2b67f]

https://linuxize.com/post/how-to-install-postgresql-on-debian-9/

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS