I have backup the mysql database db1 from a bunch of database hosted on the same server.
Now need to backup only the selected users with privileges who have access to db1 so that I can restore these privileged users to my new server before the db1 restore.
I have backup the mysql database db1 from a bunch of database hosted on
Share
Similar problem was already posted on StackOverflow: Backup MySQL users
To find users, who have only access to a given database, use this query (given you have sufficient privileges for the
INFORMATION_SCHEMAandmysqldatabase):or
Also, you can view table-specific privileges for a user:
or