Kim Walker
asked on
PHP connection to remote AWS MySQL RDS
I have a client using a MySQL database on Amazon Web Services RDS. I need to connect to that database from my own shared hosting server on Namecheap.com. I have been able to connect from my desktop successfully using MySQL Workbench and have created a php connection script in Workbench. However, my connection is being rejected with the following error:
I have avoided using AWS in the past as they seem to have reinvented the wheel in hosting administration. Nothing, and I mean nothing, in the AWS control panel even resembles anything I've ever used before. Even the terminology is unfamiliar. Even though I've set up dozens on databases for remote and local access, I am in unfamiliar territory with this system.
Any suggestions?
mysqli::mysqli(): (HY000/2003): Can't connect to MySQL server on 'removed4security.us-east-1.rds.amazonaws.com' (110)
The user privileges are set to accept connection from host %.I have avoided using AWS in the past as they seem to have reinvented the wheel in hosting administration. Nothing, and I mean nothing, in the AWS control panel even resembles anything I've ever used before. Even the terminology is unfamiliar. Even though I've set up dozens on databases for remote and local access, I am in unfamiliar territory with this system.
Any suggestions?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Some other things to check on the AWS side:
- Your endpoint resolves to a public IP address (just verifies that RDS was set up with an external IP)
- The "Security Group" tied to your RDS instance allows port 3306 from the outside
- The subnet that the RDS instance is placed in has a route with an internet gateway
ASKER
That was it Dave. All I had to do was ask for it the port to be opened.
You're welcome, glad to help.