MySQL 删除数据库

参考:MySQL:创建、修改和删除表

 

查看数据库

mysql> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| java505            |
| mysql              |
| performance_schema |
| sakila             |
| sys                |
| testjdbc           |
| world              |
+--------------------+
8 rows in set (0.00 sec)

 

删除数据库

mysql> DROP DATABASE testjdbc;
Query OK, 3 rows affected (1.01 sec)

 

查看数据库

mysql> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| java505            |
| mysql              |
| performance_schema |
| sakila             |
| sys                |
| world              |
+--------------------+
7 rows in set (0.00 sec)

 

posted @ 2019-07-15 23:08  heismk  阅读(1132)  评论(0编辑  收藏  举报