使用不同的 MySQL 数据库引擎

发布于 2024-09-14 17:21:00 字数 1287 浏览 7 评论 0原文

我在尝试使用不同的 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。

I am having problems trying to use a different MySQL database engine. (I want to change from MyISAM to InnoDB)

/etc/my.cnf

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

It appears that it is not installed? If that is true, how can I install 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)

I am on Mac OS 10.5 and I am using MySQL version 5.1.35.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清醇 2024-09-21 17:21:00

请参阅此处

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

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

See here

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

You'll need to locate download the appropriate build of the InnoDB plugin.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文