LoginSignup
0
0

More than 5 years have passed since last update.

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

Last updated at Posted at 2016-12-23

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

コマンドラインから

>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;

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

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

0
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
0
0