This is my code, on a remote server:
$username = 'myuser';
$password = 'password';
mysql_connect('localhost', $username, $password) or die ('blah blah blah');
And occasionally, it gives me this error:
Access denied for user 'myuser'@'localhost' (using password: NO)
This error persists for around 6 minutes, then fades away
Why does this happen? How can I fix it?
P.S.: Please don't worry about me using mysql_*
. I also use mysqli, and the problem also occurs. Please help.