check grants in mysql plugins

Bug #1162006 reported by Andrew Garner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
holland-backup
New
Undecided
Unassigned

Bug Description

The various mysql plugins should check grants and verify that we have the correct privileges. This allows us to fail early and with a more clear error message and avoid some nasty silent MySQL behaviors. For instance if we lack the TRIGGER privilege, triggers will silently be skipped by mysqldump and the backup will be missing data.

mysqldump effectively needs (for 5.1+):

SELECT, SHOW VIEW, RELOAD, SUPER, LOCK TABLES, REPLICATION CLIENT, EVENT, TRIGGER

(SUPER is required for stop-slave)

mysql-lvm needs:

RELOAD, REPLICATION CLIENT

But mysqldump-lvm will have the same requirements as mysqldump

xtrabackup is essentially the same:

RELOAD, REPLICATION CLIENT, SUPER

Ideally holland should also have a command for generating the right grant for the current mysql version.

Andrew Garner (muzazzi)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.