title: mysql_connect : error access denied (www-data@localhost)
body: <p>i have a raspberry pi with mysql/phpMyadmin installed.</p>
  
  <p>i can access to my website with my IP on internet.</p>
  
  <p><a href="http://[Ip" rel="nofollow">http://[Ip</a> fix not 127.0.0.1]/[site name/folder name]</p>
  
  <p>html code and PHP work but...</p>
  
  <p>Access denied for user 'www-data'@'localhost' (using password: NO)</p>
  
  <pre><code>$hostname = "{IP FIX}";
  $username = "********";
  $password = "********";
  $DataBase = "horaires";
  $db = mysql_connect($hostname, $username, $password);
  mysql_select_db($DataBase);
  </code></pre>
  
  <p>who is www-data user ?
  why localhost ? i am on internet!</p>
  
  <p>could you help me plz ?</p>
  
  <p>Olivier</p>