I typically connect using the following:
$db_host = "localhost"; $db_username = "bill"; $db_pass = "mypassword"; $db_name = "theDB"; mysql_connect("$db_host","$db_username","$db_pass", TRUE) or die(mysql_error()); mysql_select_db("$db_name") or die("no database by that name"); I tried changing the host to the RDS endpoint below with no luck:
$db_host = "mysql7.1234567890123.us-west-2.rds.amazonaws.com"; -The security group has inbound rules that allow my IP.
-I've tried adding "10.0.0.0/8" to the security group from Connecting From PHP Server to MySQL Server on Amazon AWS
Other info: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_PHP_legacy.rds.html
mysqlfunctions. They are deprecated, you must switchPDOormysqli