如何在mysql中启用INNODB
当我在 MySQL 中执行查询时,它返回一个错误,指出 InnoDB 未启用。当我点击存储引擎时,InnoDB被禁用。
如何启用 InnoDB?
When I execute a query in MySQL it returns an error saying that InnoDB is not enabled. When I clicked the storage engine, the InnoDB was disabled.
How do I enable InnoDB?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您需要在
my.cnf
文件中启用它,然后重新启动服务器:http://dev.mysql.com/doc/refman/5.1/en/innodb-parameters.html#option_mysqld_innodb
或者您可以在运行时加载 InnoDB 插件:
https: //docs.oracle.com/cd/E19078-01/mysql/mysql-refman-5.1/storage-engines.html#replacing-builtin-innodb
You need to enable it in
my.cnf
file, then restart your server:http://dev.mysql.com/doc/refman/5.1/en/innodb-parameters.html#option_mysqld_innodb
Or you can load an InnoDB plugin during runtime:
https://docs.oracle.com/cd/E19078-01/mysql/mysql-refman-5.1/storage-engines.html#replacing-builtin-innodb
我遇到过类似的情况,在 mysql-server 升级后 InnoDB 被禁用。查询“显示引擎”未显示Innodb。按照此链接为我解决了这个问题。
I faced a similar situation where InnoDB got disabled after a mysql-server upgrade. The query "show engines" didn't display Innodb. Following this link fixed the issue for me.
在
my.ini
(位于 MySQL 文件夹中)中,在'skip-innodb'
之前放置一个#
符号以禁用此命令。然后重启mysql。这将启用 InnoDB 引擎。In
my.ini
(located in MySQL folder) put a#
sign before'skip-innodb'
to disable this command. Then restart mysql. This will enable InnoDB engine.如果你的 InnoDB 在 mysql-server 升级后被禁用,你需要做的最初是在服务器启动时设置 plugin-load
然后指定 plugin_dir(插件目录)的路径名,可以通过以下 my.cnf 文件中的更改来完成
If your InnoDB gets disabled after a mysql-server upgrade what you have to do Initially is to set plugin-load of at server startup using
And then specify the pathname to the plugin_dir(plugin directory) it can be done by following changes in the my.cnf file