【问题标题】:Mysql how to revoke fileMysql如何撤销文件
【发布时间】:2012-11-25 14:46:04
【问题描述】:

我在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文档但不明白。

【问题讨论】:

    标签: mysql sql-grant


    【解决方案1】:

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

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

    有关此命令的更多信息,请参阅MySQL docs for REVOKE

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-04-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-12
      • 2015-11-02
      相关资源
      最近更新 更多