SELECT command denied to user

dsouza

New member
Joined
Jun 19, 2020
Messages
3
Hello guys,

I've a website that uses mysql_query function with 5.6 PHP version and I'm getting this following error:

SELECT command denied to user 'user'@'localhost' for table 'access'

If I access remotely using a MySQL client like the Beekeeper Studio I can run the same query without problem, but if I run the query through the mysql_query in the server localhost generates that error.

Can anyone give an idea of what it could be?
 
I don't. But did you check Google first? If I give that eror line into Google, I got a lot of these with solutions too.
Like this one for example, might be helpfull, but there are others to be found too:
 
Back
Top