...

View Full Version : Eclipse + Xampp



joliett89
09-13-2011, 02:19 PM
Do you know what host, username and password do I need to enter to access a MySQL database (on my computer in Xampp) from a PHP script in Eclipse?

I tried localhost, "", "", database_name ,but this is not working.

Here are the errors:

Warning: mysqli_connect() [function.mysqli-connect]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\Test\index.php on line 21

Warning: mysqli_connect() [function.mysqli-connect]: [2002] php_network_getaddresses: getaddrinfo failed: No such host is kn (trying to connect via tcp://http://localhost:3306) in C:\xampp\htdocs\Test\index.php on line 21

Warning: mysqli_connect() [function.mysqli-connect]: (HY000/2002): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\Test\index.php on line 21

Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in C:\xampp\htdocs\Mismatch\index.php on line 25

joliett89
09-13-2011, 02:32 PM
localhost
root
''
db_name

This one works.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum