gpt4 book ai didi

Mysql如何撤销文件

转载 作者:行者123 更新时间:2023-11-29 02:01:46 26 4
gpt4 key购买 nike

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

最佳答案

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

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

参见 MySQL docs for REVOKE有关此命令的更多信息。

关于Mysql如何撤销文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13552093/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com