这是我在尝试连接到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;
知道可能是什么问题吗?
答案 0 :(得分:0)
我所要做的就是仔细检查我的RDS实例属于哪个安全组,然后在EC2实例的VPC设置中,我必须将我的IP列入白名单。
我确信我已经覆盖了这个,因为我将其设置为默认安全组,我不知道RDS安全组是如何成为rds-launch-wizard
的。