Making a Copy of a Database
Do not use --databases
on the mysqldump command line because that causes USE db1
to be included in the dump file, which overrides the effect of naming db2
on the mysql command line.
Do not use --databases
on the mysqldump command line because that causes USE db1
to be included in the dump file, which overrides the effect of naming db2
on the mysql command line.