MySqli connect in XAMPP
<p>I am using XAMPP, PHP Version 5.6.20 in Windows. When I  try to connect to mysqli using:</p>

<pre><code>$dbc = mysqli_connect('localhost', 'yash', 'thepassword1', 'yashdb');
</code></pre>

<p>This error is showing:</p>

<blockquote>
  <p>Warning: mysqli_connect(): (HY000/1045): Access denied for user
  'yash'@'localhost' (using password: YES) in
  C:\xampp\htdocs\tdc\config\setup.php on line 3</p>
</blockquote>