Not able to delete the database, database name with hyphen

Hello,

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_YAZDANI :slight_smile:

The solution of @glilienfield is right and means:

DROP DATABASE `online-store`

Regards,
Cobra

1 Like

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