Not able to delete the database, database name with hyphen


I am getting error while try to delete the database when database name exists with hyphen. I noticed that if name doesn't contain hyphen, then delete works.

Question is, what can be done here?

Enclose the name in back ticks.

1 Like

Hello @MD_AJMAL_YAZDAN :slight_smile:

The solution of @glilienfield is right and means:

DROP DATABASE `online-store`


1 Like

Thank you all guys, .......