Help us understand the problem. What is going on with this article?

ローカル環境PostgreSQL + phpPgAdmin でデフォルトユーザーでログインできないときの対処

More than 3 years have passed since last update.

あくまでローカル環境でテストするときのみ使用する場合の対応です。

コマンドラインから

>psql -U postgres
password:*****

では入れるのにphpPgAdminで上記ログインができなかったのですが、
phpPgAdmin>FAQ>login
のところに書いてありました。

Question #4

For some users I get a “Login disallowed for security” message.

Answer: Logins via phpPgAdmin with no password or certain usernames (pgsql, postgres, root, administrator) are denied by default. Before changing this behaviour (setting $conf['extra_login_security'] to false in the config.inc.php file) please read the PostgreSQL documentation about client authentication and understand how to change PostgreSQL's pg_hba.conf to enable passworded local connections.

とのことで、

config.inc.php
$conf['extra_login_security'] = false;

にすることでログインできました。

セキュリティ上好ましくないと思われるので、あくまでローカル環境でテストするときのみ使用する場合の対応です。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした