I am using php wamp 2.0 on windows xp pro
my code
Code:
$server = "localhost";
$username = "root";
$password = "";
$database = "rufus";
$con = mysql_connect($server,$username,$password);
if (!$con)
{
die($errDbConn . mysql_error() . " :: " . mysql_errno());
}
$db_selected = mysql_select_db($database, $con);
$result = mysql_query("SELECT * FROM rufus.menu;");
and I'm receiving the following error:
SELECT command denied to user ''@'localhost' for table 'menu' :: 1142
mySQL is runing , database and tables are ok
I have tried
mysql > GRANT SELECT, INSERT, UPDATE, DELETE on anselme.* TO 'root'@'%' IDENTIFIED BY '';
mysql > SHOW GRANTS FOR root;
I get
GRANT USAGE ON *.* TO 'root'@'%'
GRANT SELECT, INSERT, UPDATE, DELETE on anselme.* TO 'root'@'%'
but allways the same error 1142
thanks for helping