I want to start scheduling remote mysqldump crons, and I'd prefer to use a special account for that purposes. I want to grant that user the minimum permissions for getting a full dump, but I'm not sure the best way to go about that.

Is it as simple as

grant SELECT on *.* to '$username'@'backuphost' identified by 'password';

or am I missing a better way?

link|improve this question

80% accept rate
feedback

2 Answers

up vote 11 down vote accepted

I believe the user just needs select permissions on the tables to be backed up.

Edit: This guy says to assign the "lock tables" permission too, which makes sense.

link|improve this answer
Terrific! Just what I was looking for. Thank you! – Matt Simmons Jun 9 '09 at 16:22
feedback

Also you need SHOW_VIEW, if there are views in your DB.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.