Skip navigation links

MySQL Forums :: General :: Escape database name when using mysqldump


Advanced Search

Escape database name when using mysqldump
Posted by: Moshe Elisha ()
Date: January 23, 2013 02:33AM

Hello,

MySQL allow creating database with special chars like quote ("), single quote (') in the name.

I know how to support a DB name with only " or only ':
mysqldump --databases "test'"
or
mysqldump --databases 'test"'

But how can I execute mysqldump when the DB name has both chars?

test`and"


Note: I cannot control the DB name so it can be anything that MySQL supports.
MySQL version 5.5

Thanks.

Options: ReplyQuote


Subject Written By Posted
Escape database name when using mysqldump Moshe Elisha 01/23/2013 02:33AM
Re: Escape database name when using mysqldump Scott Nemes 01/23/2013 10:41AM
Re: Escape database name when using mysqldump Moshe Elisha 02/11/2013 01:46AM


Sorry, you can't reply to this topic. It has been closed.

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.