Sorry for the newby question: -
Trying to connect an installation of WampServer to a MYSQL 2017 database.
I have connected the Database in ODBC Data Source Administrator (64-bit) under System DSN and given it a name of FM
When running the script to testmysql i am getting the following error: -
Connect Error (2002) php_network_getaddresses: getaddrinfo failed: No such host is known.
Script: -
$mysqli = new mysqli("FM", "DB-NAME", "DB-PASSWORD", '');
if ($mysqli->connect_error) {
die('Connect Error (' . $mysqli->connect_errno . ') '
. $mysqli->connect_error);
}
echo '<p>Connection OK '. $mysqli->host_info.'</p>';
echo '<p>Server '.$mysqli->server_info.'</p>';
$mysqli->close();
The icon is Green. I am sure it is just a step i have missed out. If someone can point me in the reight direction I would be most grateful.
Trying to connect an installation of WampServer to a MYSQL 2017 database.
I have connected the Database in ODBC Data Source Administrator (64-bit) under System DSN and given it a name of FM
When running the script to testmysql i am getting the following error: -
Connect Error (2002) php_network_getaddresses: getaddrinfo failed: No such host is known.
Script: -
$mysqli = new mysqli("FM", "DB-NAME", "DB-PASSWORD", '');
if ($mysqli->connect_error) {
die('Connect Error (' . $mysqli->connect_errno . ') '
. $mysqli->connect_error);
}
echo '<p>Connection OK '. $mysqli->host_info.'</p>';
echo '<p>Server '.$mysqli->server_info.'</p>';
$mysqli->close();
The icon is Green. I am sure it is just a step i have missed out. If someone can point me in the reight direction I would be most grateful.