I am trying to connect my RDS instance with my PHP connection file.
This is what I have in the file:
define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'User Name'); define('DB_PASSWORD', 'Password'); define('DB_DATABASE', 'DATABASE'); $connection = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD) or die(mysql_error()); $database = mysql_select_db(DB_DATABASE) or die(mysql_error());
I replaced localhost with my rds thing url, username and password with my RDS Instance user and passed the database name to the one I installed when I created this instance. But it doesn't seem to work.
Is there anything else I should do that I donβt know about or should work?
source share