I have set up a WordPress website on a Ubuntu 12.04 Amazon ec2 machine by following this tutorial except the fact that I haven’t created a MySQL database and I am using an amazon RDS MySQL service.
Everything works fine and I am able to create a configuration file during installation but when the installer asks for MySQL credentials. When I fill in the RDS credentials they don’t work.
I even tried entering the credentials manually in the
wp-confiq file and still it said it couldn’t connect to the database .
I tried to test out the same credentials on another WordPress installation in a shared hosting environment and the result was the same.
Then on the ec2 WordPress server I installed MySQL and then provided the MySQL details during installation and everything worked fine hence proving its something to do with RDS only.
The DB security Group has only one security: the EC2 Security Group
Both EC2 and RDS are located in AWS singapore southeast-1a regions
EC2 Security: only port 22 (
ssh) and 80 (
You can set your DB Security Group to allow access from specific ‘EC2 Security Groups’ or ‘CIDR IP ranges’.
Visit this URL to explore more:
Well, You have already mentioned that, you allowed access to ‘EC2 Security Group’. Refer above URL and make sure that you did it correctly.
If it didn’t help, then try to give access to the CIDR IP range (Above URL will help you for that too).