MySQL如何撤销文件权限

4

我在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

什么是revoke语句的正确语法?我尝试阅读MySQL文档,但没有理解。
1个回答

5

在您的查询中,将单词to替换为from。就像这样:

revoke file on *.* from 'john'@'localhost';

有关此命令的更多信息,请参见MySQL REVOKE文档


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接