mysql Access denied for user 'www-data'@'localhost'
<p>I have ran into a wall with trying to connect to my site now it worked fine till I added a shoutbox but I don't think it has caused it to run into a Access denied for user 'www-data'@'localhost' (using password: NO). </p>

<p>I have several sites running and only this one site seems to be running into this problem I have reset password and still no luck please someone help me.</p>

<p><strong>config.php</strong></p>

<pre><code>$site_settings['mysql_host'] = "localhost";
$site_settings['mysql_user'] = "root";
$site_settings['mysql_pass'] = "PasswordHash";
$site_settings['mysql_db']   = "project";
</code></pre>

<p><strong>cms.php</strong></p>

<pre><code>    function dbconn()
{
    global $site_settings;

if (!@mysql_connect($site_settings['mysql_host'], $site_settings['mysql_user'], $site_settings['mysql_pass']))
{
  switch (mysql_errno())
  {
    case 1040:
    case 2002:
        if ($_SERVER['REQUEST_METHOD'] == "GET")
            die("&lt;html&gt;&lt;head&gt;&lt;meta http-equiv='refresh' content=\"5 $_SERVER[REQUEST_URI]\"&gt;&lt;/head&gt;&lt;body&gt;&lt;table border='0' width='100%' height='100%'&gt;&lt;tr&gt;&lt;td&gt;&lt;h3 align='center'&gt;The server load is very high at the moment. Retrying, please wait...&lt;/h3&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;");
        else
            die("Too many users. Please press the Refresh button in your browser to retry.");
    default:
        die("[" . mysql_errno() . "] dbconn: mysql_connect: " . mysql_error());
  }
}
mysql_select_db($site_settings['mysql_db'])
    or die('dbconn: mysql_select_db: ' . mysql_error());

mysql_set_charset('utf8');
}
</code></pre>

<p>screenshot - <a href="http://prntscr.com/b7nnc7" rel="nofollow">http://prntscr.com/b7nnc7</a></p>

<p>P.S I have gotten error_reporting(E_ALL); intact also.</p>