简体   繁体   中英

AWS RDS php connection

I can't connect to MySQL RDS instance on AWS through php. It gave me this error:

Warning: mysqli::__construct(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\\xampp\\htdocs\\RESULTS\\conne\\New Text Document.php on line 7 Connection failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Could you please help me to get through. I am new to AWS and stuff. So I would be much thankful if you could describe this issue in detail.

Is it possible that you do not have the ip address of the server hosting your php application whitelisted under your rds security group? Something like this: https://stackoverflow.com/a/21498471/6763406

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM