这个数据库是使用 CMS 自动创建的。数据库名称是不带引号的“/”。当尝试删除它时,会出现这种情况。
mysql> DROP DATABASE /;
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 '/' at line 1
mysql Ver 14.14 Distrib 5.6.24,用于使用 EditLine 包装器的 debian-linux-gnu (x86_64)
感谢您的帮助。
最佳答案
你需要反引号:
DROP DATABASE `/`;
关于mysql - 如何删除名为 "/"的数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30426138/