gpt4 book ai didi

mysql - 如何从 .ibd 文件重新创建 MySQL InnoDB 表?

转载 作者:IT老高 更新时间:2023-10-28 23:51:35 24 4
gpt4 key购买 nike

假设已经从备份磁带中恢复了以下 MySQL 文件:

  • 表名.frm
  • 表名.ibd

此外,假设 MySQL 安装正在使用 innodb_file_per_table 运行,并且数据库已使用 mysqladmin shutdown 完全关闭。

如果重新安装与恢复的 MySQL 文件相同的 MySQL 版本,我如何将数据从 tablename.ibd/tablename.frm 导入到这个新安装?

最佳答案

这里回答了类似的问题。请看一看 https://stackoverflow.com/a/10943833/3985205

Yes this is possible. It is not enough you just copy the .frm files to the to the databse folder but you also need to copy the ib_logfiles and ibdata file into your data folder. I have just copy the .frm files and copy those files and just restart the server and my database is restored.

关于mysql - 如何从 .ibd 文件重新创建 MySQL InnoDB 表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2598574/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com