How do I backup MySQL users and their privileges?
Anything like mysqldump?
I am looking for something like:
mysqldump -d -u root -p MyTable &
Percona has a great tool for this. pt-show-grants will dump users and their permissions so you can easily reload them.
pt-show-grants
https://www.percona.com/doc/percona-toolkit/LATEST/pt-show-grants.html