将 MySQL 从 5.1 升级到 5.5 - InnoDB 插件问题
我计划升级一些 MySQL 服务器(5.1 到 5.5)。我知道 InnoDB 插件现在内置到 MySQL 中。
目前我们使用 InnoDB 插件...
升级到 5.5 时,是否只是删除 my.ini 中在重新启动服务器之前加载插件的相关行,或者是否有一些我需要做的事情(或者应该做的事情) )除此之外数据库和表要考虑到更改吗?
这些表只是“接收”存储引擎的更改,还是需要以某种方式进行转换。
我不打算转储和重新加载表,因为有很多大型数据库,这会有点痛苦!
希望这一切都有道理!
谢谢!
I am planning an upgrade of some MySQL servers (5.1 to 5.5). I am aware that the InnoDB plugin is now built in to MySQL.
Currently we use the InnoDB plugin...
When upgrading to 5.5, is it just a case of removing the relevant lines in my.ini that load the plugin before restarting the server, or is there something I need to do (or should be doing) to the databases and tables in addition to this to take account of the change?
Will the tables just "pick up" the change to the storage engine, or do they need to be converted in some way.
I don't intend on doing a dump and reload of the tables as there are many large databases and this would be a bit of a pain!
Hope this all makes sense!
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
运行 mysql_upgrade 脚本执行以下操作。
mysqlcheck --all-databases --check-upgrade --auto-repair
mysql <修复权限表
mysqlcheck --all-databases --check-upgrade --fix-db-names --fix-table-names
MySQL 手册建议进行转储并重新加载,而不是运行 mysql_upgrade 脚本,因为这是一种更安全的升级方式。
查看 MySQL 文档,了解有关升级步骤和陷阱的所有详细信息方式。
Run mysql_upgrade script which does the following.
mysqlcheck --all-databases --check-upgrade --auto-repair
mysql < fix_priv_tables
mysqlcheck --all-databases --check-upgrade --fix-db-names --fix-table-names
MySQL Manual recommends doing the dump and reload instead of running mysql_upgrade script as it is a safer way to upgrade.
Review MySQL documentation for all details on upgrade steps and gotchas along the way.