title: PHP warning mysql_get_server_info(): Access denied for user 'www-data'@'localhost
body: <p>I was printing the <code>mysql_get_server_info()</code> using like this: </p>
  
  <pre><code>&lt;?php 
     echo 'MySQL Informtion';
     echo mysql_get_server_info();
  ?&gt;
  </code></pre>
  
  <p>but got </p>
  
  <p><code>PHP warning mysql_get_server_info(): Access denied for user 'www-data'@'localhost (using password: NO)</code> </p>
  
  <p>in response. I am using <code>PHP5.6</code>. what causing this and how do i fix it. </p>