我一直在尝试通过转到数据库中的触发器选项卡将触发器添加到 phpmyadmin 中的表中。我添加了触发器的所有信息,并收到以下错误消息:
#1419 - You do not have the SUPER privilege and binary logging is enabled (you might want to use the less safe log_bin_trust_function_creators variable)
每当我尝试添加 super 权限,或通过调用 SET GLOBAL log_bin_trust_function_creators = 1;
更改标志 log_bin_trust_function_creators 时,phpmyadmin 都会说:
#1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation
所以我被困住了。我需要拥有 super 权限才能 a) 授予自己 super 权限或 b) 更改 log_bin_trust_funciton_creators 标志
基本上我只需要向我的数据库添加触发器,但这似乎给我带来了问题。
如有任何建议,我们将不胜感激!
最佳答案
您没有适当的权限。请您的数据库或系统管理员授予您 SUPER 权限。
I need to have SUPER privileges in order to either a) grant myself SUPER privileges
好吧,从技术上讲,您需要让另一个已经拥有 super 权限的用户将这些权限授予您;你不能对自己这么做。
根据MySQL manual ,从 5.1.6 开始的 MySQL 版本不需要 SUPER 权限来创建触发器,而是需要 TRIGGER 权限,因此如果您的管理员犹豫是否授予您 SUPER 权限,他们可能更愿意升级 MySQL。
关于php - 需要帮助创建触发器 phpmyadmin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25005880/