表类型CSV不创建

时间:2014-05-07 07:21:41

标签: mysql

我创建了一个表类型CSV,但在PHPMyAdmin中创建了类型为MRG_MYISAM的表。

我看了https://dev.mysql.com/doc/refman/5.1/en/csv-storage-engine.html

  

如果从源代码构建MySQL,则启用CSV存储引擎   使用--with-csv-storage-engine选项调用configure。

其他方法是否可以包含此类型?也许my.ini ....

1 个答案:

答案 0 :(得分:3)

为了了解哪些存储引擎可用,您可以运行以下查询:

show engines

输出将如下所示:

+------------+---------+----------------------------------------------------------------+--------------+------+------------+
| Engine     | Support | Comment                                                        | Transactions | XA   | Savepoints |
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
| MyISAM     | YES     | Default engine as of MySQL 3.23 with great performance         | NO           | NO   | NO         |
| CSV        | YES     | CSV storage engine                                             | NO           | NO   | NO         |
| MRG_MYISAM | YES     | Collection of identical MyISAM tables                          | NO           | NO   | NO         |
| BLACKHOLE  | YES     | /dev/null storage engine (anything you write to it disappears) | NO           | NO   | NO         |
| FEDERATED  | NO      | Federated MySQL storage engine                                 | NULL         | NULL | NULL       |
| InnoDB     | DEFAULT | Supports transactions, row-level locking, and foreign keys     | YES          | YES  | YES        |
| ARCHIVE    | YES     | Archive storage engine                                         | NO           | NO   | NO         |
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables      | NO           | NO   | NO         |
+------------+---------+----------------------------------------------------------------+--------------+------+------------+

正如您所阅读的文档所述,可以决定编译时间MySQL二进制文件是否包含对CSV引擎的支持。如果他们不这样做,那就不可能使用它了。你不能启用不存在的东西; - )