MySQL 说无法将 : invalid settings. EC2 连接到 RDS

标签 mysql amazon-ec2

这是我在尝试连接到 RDS MySQL 后遇到的错误。

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.

我的 config.inc.php 看起来像这样:

$cfg['Servers'][$i]['host'] = 'xxxxx.c23dckhb3huo.eu-west-1.rds.amazonaws.com';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'xxxx'; // master user which I got while setting up a RDS instance (not sure if I should use that one)
$cfg['Servers'][$i]['password'] = 'xxxx'; // master pwd which I got while setting up a RDS instance (not sure if I should use that one)
$cfg['Servers'][$i]['AllowNoPassword'] = false;

知道可能是什么问题吗?

最佳答案

我所要做的就是仔细检查我的 RDS 实例属于哪个安全组,然后在 EC2 实例的 VPC 设置中我必须将我的 IP 列入白名单。

我确信我已经涵盖了这个,因为我将它设置为默认安全组,我不知道 RDS 安全组是如何变成 rds-launch-wizard 的。

关于MySQL 说无法将 : invalid settings. EC2 连接到 RDS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32316437/

相关文章:

mysql - 导入schema.sql时出错

javascript - 通过 Javascript 中的行号访问表的元素?

MySQL从十进制转换为字符串

amazon-web-services - 需要使用 aws cli 或 api 从命令行获取用于部署 ec2 的 cloudformation 模板的名称

amazon-web-services - 从 cloudformation 模板初始化时有没有办法标记根卷?

c# - 搜索按钮没有输出

php - 多个表单输入,如何提交并保存到mysql

node.js - 在 aws 上部署使用 mongodb 的 Node js 应用程序

linux - 从 EC2 同步到 s3 后如何删除文件

amazon-web-services - 我可以仅使用Docker来设置EC2实例的一般环境吗?