How to Copy an Entire Database Including it's Privileges/Grants
Last updated on DECEMBER 26, 2016
Applies to:MySQL Server - Version 5.0 and later
Information in this document applies to any platform.
How to safely copy the tables from one database to another, including all privileges?
The most commonly used traditional mysqldump tool included with the MySQL server has no functionality for copying database/object-specific user privileges, and is thus not suitable for this task unless you are dumping and restoring the entire server with --all-databases.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms