Bug #29043 | Add mysqldump option to dump privileges in GRANT format | ||
---|---|---|---|
Submitted: | 12 Jun 2007 6:37 | Modified: | 13 Jun 2007 9:54 |
Reporter: | Alexander Keremidarski | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: mysqldump Command-line Client | Severity: | S4 (Feature request) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[12 Jun 2007 6:37]
Alexander Keremidarski
[13 Jun 2007 9:54]
Valeriy Kravchuk
Thank you for a reasonable feature request.
[12 Mar 2010 23:09]
Gavin Matthews
This page describes how to roll your own script: http://serverfault.com/questions/8860/how-can-i-export-the-privileges-from-mysql-and-then-...
[9 Mar 2013 1:16]
Cesar Martins Cesar
I need this too! This is a basic feature , why missing this for so long ? All other databases vendors have at least a easy way to do this...
[16 Nov 2014 11:53]
Daniƫl van Eeden
In information_schema there are USER_PRIVILEGES, SCHEMA_PRIVILEGES, COLUMN_PRIVILEGES and TABLE_PRIVILEGES tables available. http://dev.mysql.com/doc/refman/5.6/en/user-privileges-table.html http://dev.mysql.com/doc/refman/5.6/en/schema-privileges-table.html http://dev.mysql.com/doc/refman/5.6/en/table-privileges-table.html http://dev.mysql.com/doc/refman/5.6/en/column-privileges-table.html The mysqluserclone utility from MySQL Utilities can be used to do dump users with the --dump option. http://dev.mysql.com/doc/mysql-utilities/1.6/en/mysqluserclone.html