Hi,
I got this problem when trying to connect to mySQL database using mysql_connect(); function.
At first everything was fine, i was able to connect and manipulate the data, no problems. But then i changed username, and password to connect to database as a different user (I created another user for database), and i get error for last username i used with this function. I deleted that user from database because it was only a test username. I created new one, but function is still trying to connect with old username even i specified new one.
So for example,
At first i was trying:
$server = "myserver";
$username = "Guest";
$password = "Guest";
mysql_connect($server, $username, $password);
And i connected normally.
I deleted this guest user from database and created new one.
$server = "myserver";
$username = "Newuser";
$password = "Newpass";
mysql_connect($server, $username, $password);
And i get error:
Warning: mysql_connect() [function.mysql-connect]: Host 'Guest' is not allowed to connect to this MySQL server in C:\xampp\htdocs\mysite\connection.php on line 9
Host 'Guest' is not allowed to connect to this MySQL server
The username is "Newuser" but i still get error for 'Guest'.
I reinstalled XAMPP because of this problem, restarted my PC but i still have same problem