I tried the following statement in mysql terminal:
revoke file on *.* to 'john'@'localhost';
But I get the error:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'to 'john'@'localhost'' at line 1
What is the correct syntax for the revoke statement? I tried reading mysql documentation but didn’t understand.
In your query, replace the word
towithfrom. Like this:See the MySQL docs for REVOKE for more info on this command.