mysql: Cant we create triggers on system tables?

前端 未结 2 1744
孤独总比滥情好
孤独总比滥情好 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:41

    Had you seen this: http://forums.mysql.com/read.php?99,207145 ?

    The poster says he needed "SUPER PREVILAGES" Do you have access to the root user for the database?

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题