title: mysql permission denied from browser; but works from cli
body: <pre><code>$con = mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_DATABASE);
  
  // Check connection
  if (mysqli_connect_errno())
    {
    echo "Failed to connect to MySQL: " . mysqli_connect_error();
    }
  else {
  echo "success";
  }
  </code></pre>
  
  <p>when I am running this code on cli, I get the success message. </p>
  
  <p>When I try this code from the browser, i.e run the index.php, I get <code>permission denied</code> error. </p>
  
  <p>This is the VPS where I am doing it.</p>
  
  <p>What could be the issue here?</p>