While I am sure there are multiple ways to do this and some probably easier here is a way to backup your mysql user privileges to a CSV file.
First you will need to get to the mysql cli.
# mysql -uroot -p
Enter password:Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL…