Merge pull request #108 from Paulche/master

Add show view privilege for backup user

This is valid for database dumps which contain views, as per http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html
This commit is contained in:
Hunter Haugen 2012-09-04 11:18:43 -07:00
commit 5e8f98b5d2

View file

@ -36,7 +36,7 @@ class mysql::backup (
}
database_grant { "${backupuser}@localhost":
privileges => [ 'Select_priv', 'Reload_priv', 'Lock_tables_priv' ],
privileges => [ 'Select_priv', 'Reload_priv', 'Lock_tables_priv', 'Show_view_priv' ],
require => Database_user["${backupuser}@localhost"],
}