简体   繁体   中英

RDS Connection String in PHP

I'm frantically beginning the move from Xeround to Amazon RDS. I've been unable to connect to RDS via PHP. I've tried a number of variations of the following:

$connection = @mysql_connect('host:port','uname','password')

Nothing seems to go through. I'm using the same port value as I had used previously with Xeround, so that's not the issue. I'm certain the host is the endpoint and the username and password are correct. I've tried using the same parameters in C# and the MySQL workbench, but to no avail. What should I do to troubleshoot this problem?

Thanks!

I resolved the problem. I needed to edit the security group and add a CIDR exception for the current IP address. The connection string I initially posted was correct.

Thanks!

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