Created
January 5, 2018 03:38
-
-
Save yano/95f0a89506596d88824c5e623daac806 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// postgres install | |
sudo apt-get install postgresql | |
// change password | |
sudo passwd postgres | |
// postgresユーザでログイン | |
su - postgres | |
// databaseへ接続 | |
$ psql -d postgres | |
// psql内のコマンド集 | |
// https://qiita.com/mm36/items/1801573a478cb2865242 | |
// ユーザの作成 | |
create user username; | |
// passwordの変更 | |
\password username(エンターキー) | |
// databaseの作成 | |
create database db_name; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment