Web Analytics Made Easy -
StatCounter Eclipse + Xampp - CodingForum

Announcement

Collapse
No announcement yet.

Eclipse + Xampp

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    localhost
    root
    ''
    db_name

    This one works.

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎