Bug #80729 mysqlpump should enable --users by default
| Submitted: | 14 Mar 2016 13:36 | Modified: | 3 Aug 2016 5:26 |
|---|---|---|---|
| Reporter: | Morgan Tocker | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: mysqlpump Command-line Client | Severity: | S4 (Feature request) |
| Version: | 5.7.11 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[14 Mar 2016 13:36]
Morgan Tocker
[3 Aug 2016 5:26]
MySQL Verification Team
Hello Morgan, Thank you for the feature request! Thanks, Umesh
[16 Feb 2020 11:26]
Daniƫl van Eeden
With 8.0.19 the situation is as follows: When using mysqlpump with no options (the default is --all-databases): --triggers and --routines are TRUE --users is FALSE The mysql.db, mysql.user, etc tables are not included in the dump. And mysqldump does include these tables. The --flush-privileges option is not enabled by default, so after the restore a `FLUSH PRIVILEGES` is needed. If one migrates from mysqldump to mysqlpump it is very easy to not notice the difference and have a backup that doesn't include users. I see two possible options: 1. Set --users TRUE if --all-databases is used (and if dumping the mysql schema explicitly?) 2. Show a warning if --all-databases is used without --users I think option 1 is the best solution
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.