MySQL 删除预定事件语法错误 1064 (42000)

MySQL drop scheduled event syntax ERROR 1064 (42000)

我正在尝试删除已安排的活动,但一直收到此错误:

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 '[IF EXISTS] some_event' at line 1

这是我在终端中输入的内容:DROP EVENT [IF EXISTS] some_event;

我正在 Ubuntu 服务器 14.04 上执行此操作。我做错了什么?

不要使用 [] 括号仅用于指示该部分在文档中是可选的:

DROP EVENT IF EXISTS some_event;

Typographical and Syntax Conventions:

In syntax descriptions, square brackets (“[” and “]”) indicate optional words or clauses. For example, in the following statement, IF EXISTS is optional:

DROP TABLE [IF EXISTS] tbl_name