MySQL 创建数据库

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

 

查看数据库

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

 

创建数据库

mysql> CREATE DATABASE Java407;
Query OK, 1 row affected (0.00 sec)

 

查看数据库

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

 

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