Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to DROP a database with character '`' in its name?

How to drop NAMMIK with backquote ? It was accidentially added by CALL sys.create_synonym_db;

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| `NAMMIK`           |
| NAMMIK             |
| mysql              |
| nammik             |
| performance_schema |
| sys                |
+--------------------+

 mysql> DROP DATABSE `NAMMIK`;
ERROR 1064 (42000): 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 'DATABSE `NAMMIK`' at line 1

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Try with:

DROP DATABASE `` `NAMMIK` ``;
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading