来自MySQL 文档
In MySQL 5.0 CREATE TRIGGER requires the SUPER privilege.
所以你需要给用户超级权限。导入时,会出现“创建触发器...”之类的命令,该命令会引发错误。
检查您的 MySQL 版本和定义器值以及导入文件中的触发器。
编辑:
对于 5.1 版,请遵循MySQL docs,上面写着:
CREATE TRIGGER requires the TRIGGER privilege for the table associated with the
trigger. The statement might also require the SUPER privilege, depending on
the DEFINER value, as described later in this section. If binary logging is
enabled, CREATE TRIGGER might require the SUPER privilege, as described in
Section 19.7, “Binary Logging of Stored Programs”. (Before MySQL 5.1.6, there is
no TRIGGER privilege and this statement requires the SUPER privilege in all cases)
The DEFINER clause determines the security context to be used when checking access
privileges at trigger activation time.
因此,您需要检查定义器值以导入触发器。它可能有类似的东西:DEFINER = root
。尝试删除定义器,然后尝试导入。希望它有效...