MySQL error permission denied?

I did the following command:
grant all privileges on database.* to user@localhost identified by 'password'

My site works fine like usual for a few minutes and than the privilege just seems to disapear and that I get a permission error.

Does it have anything to do with CPanel? (For not having the username_ prefix before the db name and the db username)

I tried creating a user in CPanel and for some reason that doesn't work but I'm not to worried about that.

 

 

 

 

Top