MacOSX 中 MySQL InnoDB 错误该怎么办?
我的 mysql 安装是新的,昨天还可以运行。 错误
Mysql::Error: Unknown table engine 'InnoDB': SELECT version FROM schema_migrations
现在,我的 ruby-on-rails 应用程序中任何与 MySQL 相关的任务都会失败,并出现我在网上搜索 InnoDB 的 ,它似乎是一个插件。一些消息来源要求我重新安装 mysql 和 InnoDB。我从 dev.mysql.com 站点下载了源代码,但是我的雪豹的 64 位 MacOSX tarball 没有 .configure 文件供我配置安装。
但sequel-pro mysql 客户端却很有魅力。只有当我尝试从终端或 Rails 应用程序使用 mysql 时,才会出现问题。请帮忙
My mysql installation is new and it was working a yesterday. Now, any MySQL related task in my ruby-on-rails app is failing with the error
Mysql::Error: Unknown table engine 'InnoDB': SELECT version FROM schema_migrations
I searched on the net for InnoDB and it seems to be a plugin. Some sources asked me to reinstall mysql with InnoDB. I downloaded the source from the dev.mysql.com site, but that 64-bit MacOSX tarball for my snow leopard didnt have a .configure file for me to configure my install .
But the sequel-pro mysql client works like charm. Its only when I try to use mysql from terminal or from my rails apps, the problem occurs. please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MySQL 可以使用多种不同的数据库引擎,其中两个主要是 MyISAM 和 InnoDB。它们在哲学和建筑上不同,这就是为什么它们从未合并为一。当您使用 MySQL 时,您可以根据需要在它们之间进行选择。 InnoDB 始终具有完整的事务处理能力,而 MyISAM 始终具有非常高的速度。
听起来好像当您的数据库服务器不支持 InnoDB 时您正在尝试使用 InnoDB 表。您需要转换为使用 MyISAM 表,或者更改 MySQL 的配置以启用 InnoDB 表(确保您的 MySQL 版本支持它)。
以下是一些可以帮助您入门的资源:
MySQL can use a number of different database engines, the two main ones being MyISAM and InnoDB. They differ in philosophy and architecture, which is why they've never been merged into one. When you use MySQL, you choose between them based on your needs. InnoDB has always had full transactional capability whereas MyISAM has always been very high speed.
Sounds like you are trying to use an InnoDB table when your database server does not support InnoDB. You'll need to either transition to using MyISAM tables, or change MySQL's configuration to enable InnoDB tables (making sure your version of MySQL has support for it).
Here's some resources that could get you started: