Minimum GRANTs needed by mysqldump for dumping a full schema? (TRIGGERs are missing!!)

前端 未结 4 498
日久生厌
日久生厌 2020-12-02 08:15

I have a MySQL user called dump with the following perms:

GRANT USAGE ON *.* TO \'dump\'@\'%\' IDENTIFIED BY ...
GRANT SELECT, LOCK TABLES ON `mysql         


        
4条回答
  •  被撕碎了的回忆
    2020-12-02 09:06

    I found the extra GRANT I needed!!

      GRANT TRIGGER ON `myschema`.* TO 'dump'@'%'
    

    Here you have the reference on the official doc: http://dev.mysql.com/doc/refman/5.5/en/privileges-provided.html#priv_trigger

    The TRIGGER privilege enables trigger operations. You must have this privilege for a table to create, drop, or execute triggers for that table.

提交回复
热议问题