I had this problem, and fixed it by changing my password and user name in my.ini then just re-did the GRANT ALL PRIV command.
open cmd promtp
(I had to use this method because it kept getting an error)
Code:
cd c:\mysql\bin
mysql -u root mysql
GRANT ALL PRIVILEGES TO *.* user@localhost IDENTIFIED BY 'pass' WITH GRANT OPTION;