Access Database

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Access Database

Postby garymcshane » 06. August 2016 12:37

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
garymcshane
 
Posts: 1
Joined: 06. August 2016 12:17
XAMPP version: 55.33
Operating System: windows 7

Re: Access Database

Postby Altrea » 11. August 2016 16:08

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8293
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 45 guests