我在mysql终端中尝试了以下语句:
revoke file on *.* to 'john'@'localhost';
但我收到错误:
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
撤销声明的正确语法是什么?我试过阅读mysql文档,但不明白。
答案 0 :(得分:3)
在您的查询中,将to
替换为from
。像这样:
revoke file on *.* from 'john'@'localhost';
有关此命令的更多信息,请参阅MySQL docs for REVOKE。