刚刚在我的电脑上试用了 ubuntu 服务器,并一直在测试一些命令,包括 mysql。我不确定为什么 phpMyAdmin 允许我创建一个像“testing?db”这样的数据库。我正在尝试通过 SSH 删除此数据库,但出现此错误:
mysql> show databases
-> ;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| phpmyadmin |
| testing?db |
| testing_db |
| wp |
+--------------------+
6 rows in set (0.00 sec)
mysql> DROP DATABASE testing?db;
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 '?db' at line 1
mysql>
我尝试使用“?”创建数据库 在其中,它也给了我语法错误。通过 ssh。那么如何删除这个数据库呢?