【问题标题】:cannot connect phpPgAdmin on ec2 instance to RDS Pgsql无法将 ec2 实例上的 phpPgAdmin 连接到 RDS Pgsql
【发布时间】:2016-08-16 04:41:01
【问题描述】:

我正在尝试将我的 AWS RDS postgres 数据库连接到在 ec2 实例上运行的可远程访问的 phpPgAdmin。我能够访问 phpPhAdmin 页面,并编辑了 phpPgAdmin 文件夹中的 config.inc.php 文件,使其包含 RDS 服务器的端点。

这是 config.inc.php 的相关部分。

    /**
     * Central phpPgAdmin configuration.  As a user you may modify the
     * settings here for your particular configuration.
     *
     * $Id: config.inc.php-dist,v 1.55 2008/02/18 21:10:31 xzilla Exp $
     */

    // An example server.  Create as many of these as you wish,
    // indexed from zero upwards.

    // Display name for the server on the login screen
    $conf['servers'][0]['desc'] = 'Visionmap';

    // Hostname or IP address for server.  Use '' for UNIX domain socket.
    // use 'localhost' for TCP/IP connection on this computer
    $conf['servers'][0]['host'] = '*myRDSendpoint*';

    // Database port on server (5432 is the PostgreSQL default)
    $conf['servers'][0]['port'] = 5432;

问题是,当我尝试登录服务器时,它需要很长时间,然后说登录失败。我已经使用相同的用户名和密码连接到带有 pgAdminIII 的 RDS 服务器,没有任何问题。我也多次重启了httpd。 phpPgAdmin timed out

【问题讨论】:

    标签: postgresql amazon-web-services amazon-ec2 aws-rds phppgadmin


    【解决方案1】:

    Serverfault.com 上的这个帖子提供了答案。

    https://serverfault.com/questions/402127/cant-login-to-phppgadmin

    我没有启用来自 EC2 的公共 IP 地址的 TCP 入站流量。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-05-26
      • 1970-01-01
      • 1970-01-01
      • 2017-05-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-31
      相关资源
      最近更新 更多