I am trying to connect my PHP application to AWS rds. I have done all the steps and finally when i write the connection like this:
$link = mysqli_connect($_SERVER['amazon-endpoint'], $_SERVER['myMasterUserName'], $_SERVER['myMasterUserPassword'], $_SERVER['ebdb'], $_SERVER['3306']);
if(mysqli_connect_errno()){
die("database connection failed: " . mysqli_connect_error() . " (" .
mysqli_connect_errno() . ")");
}
I get this error: database connection failed: No such file or directory (2002)