MySQL Forums
Forum List  »  General

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


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'"
mysqldump --databases 'test"'

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


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


Options: ReplyQuote

Written By
Escape database name when using mysqldump
January 23, 2013 02:33AM

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.