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