mysql - 使用不同的 MySQL 数据库引擎

标签 mysql macos innodb myisam

我在尝试使用不同的 MySQL 数据库引擎时遇到问题。 (我想从 MyISAM 改成 InnoDB)

/etc/my.cnf

[mysqld]
bind-address = 127.0.0.1
default-storage-engine=InnoDB

好像没有安装?如果是这样,我该如何安装 InnoDB?

mysql> show engines;
+------------+---------+-----------------------------------------------------------+--------------+------+------------+
| Engine     | Support | Comment                                                   | Transactions | XA   | Savepoints |
+------------+---------+-----------------------------------------------------------+--------------+------+------------+
| CSV        | YES     | CSV storage engine                                        | NO           | NO   | NO         | 
| MRG_MYISAM | YES     | Collection of identical MyISAM tables                     | NO           | NO   | NO         | 
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables | NO           | NO   | NO         | 
| MyISAM     | DEFAULT | Default engine as of MySQL 3.23 with great performance    | NO           | NO   | NO         | 
+------------+---------+-----------------------------------------------------------+--------------+------+------------+
4 rows in set (0.00 sec)

我在 Mac OS 10.5 上使用 MySQL 5.1.35 版。

最佳答案

看这里

http://dev.mysql.com/doc/refman/5.1/en/pluggable-storage.html

您需要下载 InnoDB 插件的适当版本。

关于mysql - 使用不同的 MySQL 数据库引擎,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3494747/

相关文章:

mysql - 使用多个 LEFT JOIN 时,COUNT 和 SUM 会相乘

php - 无法将mysql数据检索到单个字符串中

mysql - 按差异筛选的绩效分组

macos - 直接从mac终端从csv文件中删除列?

macos - SwiftUI - onDrag 参数类型 'NSImage' 不符合预期类型 'NSItemProviderWriting'

php - 保持缓存内容的实时 View

macos - Neo4j 3.0 社区版不能从 mac osx 的终端运行

Mysql日常死机

Mysql InnoDB 合并/复制数据

使用 TYPE=InnoDB 导入 MySQL