将PhpMyAdmin连接到AWS RDS实例

问题描述 投票:0回答:1

我正在尝试将PhpMyAdmin的XAMPP安装连接到我的AWS RDS实例。我对以下文件进行了以下配置:config.inc.php:


$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'admin';
$cfg['Servers'][$i]['password'] = '*****';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '*******.us-east-2.rds.amazonaws.com';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;


一切正常,因为PhpMyAdmin确实从下拉列表中进行了选择。但是,当我选择连接时,它将花费很长时间,并最终出现以下错误(我检查了安全性grps,并允许所有流量。有没有一种方法可以验证我的登录名和安全组):

MySQL said: Documentation
Cannot connect: invalid settings.
mysqli::real_connect(): (HY000/2002): Connection timed out
Connection for controluser as defined in your configuration failed.
mysqli::real_connect(): (HY000/2002): Connection timed out
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
mysql amazon-web-services phpmyadmin xampp amazon-rds
1个回答
0
投票

此操作在将我的桌面IP的新规则添加到RDS实例后起作用。该视频带您完成故障排除步骤:

youtube.com/watch?v=PxFZt8MG2ss

© www.soinside.com 2019 - 2024. All rights reserved.