Here's my code to test connecting to the DB I just set up.
<?php
// DB connection info
$servername = "slateproject.database.windows.net";
$username = "";
$password = "";
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>
and the error
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.
Any clue what is preventing the connection?
sqlsrv
(e.g. MS Sql Server)? – Marc B