title: why mysqli_connect() returning true even I passing wrong username?
body: <p>Here's my code.</p>
  
  <pre><code>&lt;?php
      $server = "localhost";
      $uname = "replace it with anything";
      $pswd = "";
  
      $conn = mysqli_connect($server, $uname, $pswd);
  
      if(!$conn){
          die('Caught');
      }
      else{
          die('Connected');
      }   
  ?&gt;
  </code></pre>
  
  <p>No matter what I passed in the <code>mysqli_connect()</code> as <strong>username</strong>. It always returns <code>true</code>. In the case of the wrong password, it shows an error that accesses denied, but I don't know why, no matter what I enter in the username, it always returning true.</p>