Escape database name when using mysqldump
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.
Subject
Written By
Posted
Escape database name when using mysqldump
January 23, 2013 02:33AM
February 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.