Page 1 of 1

Access Database

PostPosted: 06. August 2016 12:37
by garymcshane
Hi,
I am currently creating a website for a company using xampp(localhost) and they which to access there own database I have the correct information such as their servername(name of the server), username, password and the database name. However I seem to be having a problem and this error message appeared on my web page 'Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\database\db_khoas.php on line 12

Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\database\db_khoas.php on line 12'. It seems like it's unable to access the database.

Thanks in advance for your assistance.

Regards,

Gary McShane

Re: Access Database

PostPosted: 11. August 2016 16:08
by Altrea
Hi,

garymcshane wrote:I am currently creating a website for a company

According to the basic rules we do not want to provide enterprise or commercial oriented support.

garymcshane wrote:Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\database\db_khoas.php on line 12

Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\database\db_khoas.php on line 12'. It seems like it's unable to access the database.

This messages are very clear. Did you already tried to google this? I found nearly 7000 hits for this and many of the hits are pointing to the same issue.

best wishes,
Altrea