On the server there are some databases named modelo-submodelo
(this is the name of the database, created with "-" same).
When I execute a command like:
mysqldump -h"$DBHOST" -u"$DBUSER" -p"$DBPASS" modelo-submodelo --compress=TRUE > $TEMP/$DBTEMPNAME
works normally. However, if I have to create the base again using the command line:
mysql -h"$DBHOST" -u"$DBUSER" -p"$DBPASS" -e "create database modelo-submodelo;"
returns error due to "-":
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-submodel' at line 1
How do I mount this command so I do not get the error and create the database correctly?