[debian-mysql] Bug#722346: --no-use-db option for mysqldump?
sebastien.hinderer at ens-lyon.org
Tue Sep 10 12:52:37 UTC 2013
Would it be possible to add to mysqldump a --no-use-db option similar to
the --no-create-db option it already has?
This would be useful when one wants to duplicate a databse. Indeed, in
this situation, one wants the tablesto be inserted in a db whose name is
different from the name of the original db.But when the USE originaldb
line is met mysql automatically swithces to the original db, although it
has ben run on the new one, so that the duplication is not done.
Of course the two databases could have different access rights, so that
the USE would fail, making mysql remain in the newdb, but this does not
seem so clean.
More information about the pkg-mysql-maint