mysql: Cant we create triggers on system tables?

前端 未结 2 1742
孤独总比滥情好
孤独总比滥情好 2020-12-07 04:57

I am trying to audit the privilege changes in mysql.user table by writing a trigger on it.

insert trigger: will capture who gave the new permissions and when         


        
2条回答
  •  有刺的猬
    2020-12-07 05:55

    No we can not. Even if we have the best concerned privileges are all and super

    See (All) and (Super) Privileges Provided by mySql

    After trying all type of privileges like

    grant super on *.* to root@localhost
    grant all on *.* to root@localhost
    

    I have tried simplest trigger on different tables mysql.db and got same error

    Triggers can not be created on system tables // Please accept this bitter truth

    If you found anywhere that triggers can be created on system tables, simply that is wrong

提交回复
热议问题