• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

mysqldump - how to not specify "use [db]"

Red Squirrel

No Lifer
Is there a way I can make it so mysqldump wont put the

"use [dbname]" in the dump?

I'm writing a bash script for quickly taking a snap shot of a DB, but I want to be able to easily restore that snapshot to another DB without having to edit the file.

I was unable to find info in the man page.

If this is not possible is there another way to take a snap shot and copy it to another DB name?
 
I forgot about using sed, that's an option too. Just added a sed line to delete anything that matches use '.*'; and it works.
 
Back
Top