title: Warning: mysqli_connect(): php_network_getaddresses: getaddrinfo failed: No such host is known. Yet I clearly have to host there
body: <p>I have a site written in PHP that I'm creating. But I'm having this issue when I connect it to the database. When I load the page, I get the top:</p>
  
  <pre><code>Warning: mysqli_connect(): php_network_getaddresses: getaddrinfo failed:     No such host is known. in C:\Program Files\Apache Software   Foundation\Apache2.2\htdocs\socialtest\inc\connect.inc.php on line 7
  
  Warning: mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\Program Files\Apache   Software Foundation\Apache2.2\htdocs\socialtest\inc\connect.inc.php on line 7
  </code></pre>
  
  <p>This is connect.inc.php. The file which establishes the connect to the MySQL database:
      
  
  <pre><code>$dbc = mysqli_connect('USER','PASSWORD','SERVER','DATABASE');
  #OR die('Captian, we have failed' .
  #     mysqli_connect_error());
  ?&gt;
  </code></pre>
  
  <p>The server name is 'localhost' and I never had a problem with it until recently.</p>
  
  <p>Please let me know how I can solve this issue as I've tried everything I can think of and I'm out of options.</p>
  
  <p>I'm using Apache2.2, PHP .5.6.9 and MySQL56 on Windows Vista.</p>
  
  <p>Thanks!</p>