无法将ec2实例上的phpPgAdmin连接到RDS Pgsql

时间:2016-08-15 02:26:18

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

我正在尝试将我的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

0 个答案:

没有答案