I have checked for something similar to my situation but have not found anything that fixes my problem. I have a database on my IIS web server called 'FracFocusRegistry' and am trying to connect to it using the following params.
$server = "scg-1441-6\FRACSQL";
$database = "FracFocusRegistry";
$user = "root";
$password = "";
$conn = new mysqli($server, $user, $password, $database);
if($conn->connect_errno > 0){
die('Unable to connect to database [' . $conn->connect_error . ']');
}
I am receiving the following error "Unable to connect to database [php_network_getaddresses: getaddrinfo failed: No such host is known. ]"
I have checked multiple times and the server name is in fact correct. I have found others with similar issues and opened firewall ports and changed settings in SQL manager and still nothing works. Any help would be greatly appreciated.