这是我在尝试连接到 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/