我正在尝试通过在mysql.user表上编写触发器来审计权限更改。
insert trigger: will capture who gave the new permissions and when
update trigger: will capture who changes the privileges from what[old privilege]
remove trigger: will capture who removed the privileges and what are they现在,我在写这样的代码时遇到一个错误
ERROR 1465 (HY000): Triggers can not be created on system tables我们可以在系统表上创建触发器吗?有什么解决方法吗?或者它将在更高版本的versions> 5.1.61中得到支持?
提前谢谢。
发布于 2012-11-17 19:20:48
不,我们不能。即使我们最关心的权限是all和super
See (All) and (Super) Privileges Provided by mySql
在尝试了所有类型的特权后,如
grant super on *.* to root@localhost
grant all on *.* to root@localhost我已经在不同的表mysql.db上尝试了最简单的触发器,但得到了相同的错误
无法在系统表上创建
触发器//请接受这一严酷的事实
如果您发现可以在系统表上创建触发器,那就大错特错了
发布于 2012-04-27 15:42:58
你看过这个吗:http://forums.mysql.com/read.php?99,207145?
发帖者说他需要“超级预览版”你有权限访问数据库的root用户吗?
https://stackoverflow.com/questions/10346546
复制相似问题