时间:2021-07-01 10:21:17 帮助过:14人阅读
mysql> ALTER DATABASE itcase DEFAULT CHARACTER SET utf8;
Query OK, 1 row affected
查看修改后的数据库编码
mysql> SHOW CREATE DATABASE itcase;
+----------+-----------------------------------------------------------------+
| Database | Create Database |
+----------+-----------------------------------------------------------------+
| itcase | CREATE DATABASE `itcase` /*!40100 DEFAULT CHARACTER SET utf8 */ |
+----------+-----------------------------------------------------------------+
1 row in set
删除数据库
DROP DATABASE 数据库名称;
mysql> DROP DATABASE itcase;
Query OK, 0 rows affected
查看数据库是否删除
mysql> SHOW DATABASES;
+--------------------+
| Database |
+--------------------+
| information_schema |
| itsa |
| mysql |
| performance_schema |
| test |
+--------------------+
5 rows in set
数据库的创建
标签:databases row rop 名称 har 查看 数据库名 span col