4
12

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.

開発環境のPostgreSQLをパスワードなしでログインできるようにする

Posted at

開発環境なのにいちいちログインするのは面倒ですよね。

パスワードなしでログインできるように、/etc/postgresql/9.3/main/pg_hba.confの以下を編集します。

host    all             all             127.0.0.1/32          md5
host    all             all             ::1/128                 md5

md5のをtrustにします。

host    all             all             127.0.0.1/32           trust
host    all             all             ::1/128                 trust

これで再起動します。

$ sudo service postgresql restart

以上です。

4
12
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
4
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?