title: Wamp, PHP MySQL - Connecting error
body: <p>I've installed a WAMP server. Now I want to connect to a MySQL database using php. I have one problem you need to get the username.
  This is the code I use. Its from php.net <a href="http://php.net/manual/en/mysqli.quickstart.connections.php" rel="nofollow">http://php.net/manual/en/mysqli.quickstart.connections.php</a></p>
  
  <pre><code>&lt;?php
  $db_host = "localhost";
  $db_username = "root";
  $db_password = "password";
  $db_name = "test";
  
  $mysqli = new mysqli($db_host, $db_username, $db_password, $db_name);
  if ($mysqli-&gt;connect_errno) {
  echo "Failed to connect to MySQL: (" . $mysqli-&gt;connect_errno . ") " . $mysqli-&gt;connect_error;
  }
  echo $mysqli-&gt;host_info . "\n";
  ?&gt;
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>Warning: <code>mysqli::mysqli()</code>: in C:\wamp\www\Atletieker\dbconnect.php on line 7
    Failed to connect to MySQL: (1045) Accès refusé pour l'utilisateur: 'root'@'@localhost' (mot de passe: OUI)</p>
    
    <p>Warning: <code>main()</code>: Couldn't fetch mysqli in C:\wamp\www\Atletieker\dbconnect.php on line 11</p>
  </blockquote>
  
  <p>How do I get the username of my database?</p>