Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Eclipse + Xampp

  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    184
    Thanks
    68
    Thanked 2 Times in 2 Posts

    Eclipse + Xampp

    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

  • #2
    Regular Coder
    Join Date
    Jul 2011
    Posts
    184
    Thanks
    68
    Thanked 2 Times in 2 Posts
    localhost
    root
    ''
    db_name

    This one works.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •