Jump to content



Search the Community

Showing results for tags 'ibd'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 站务与动态
    • 最新公告
    • 内部讨论
  • 交流与讨论
    • 移动应用
    • 系统软件
    • 程序代码
    • 娱乐影音
    • 网络资源
    • 灌水闲聊

Calendars

There are no results to display.

Blogs

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


简介内容

Found 1 result

  1. 最简单的只需要4步 1.创建一张表,表结构与原表结构一致: CREATE TABLE <table_name> ...; 2.删除新建的表空间: ALTER TABLE <table_name> DISCARD TABLESPACE; 3.将待恢复的<table_name>.ibd文件copy到目标数据库文件夹下,并修改文件权限: cp <table_name>.ibd /var/lib/mysql/<database_name> cd /var/lib/mysql/<database_name> chown mysql:mysql <table_name>.ibd 4.导入表空间: ALTER TABLE <table_name> IMPORT TABLESPACE; 也可能出现如下问题: 1.mysql 1808错误: Error Code: 1808. Schema mismatch (Table has ROW_TYPE_DYNAMIC row format, <table_name>.ibd file has ROW_TYPE_COMPACT row format.) 这是由于mysql 5.6的文件恢复到mysql 5.7版本导致的错误,需要在建表语句后面添加ROW_FORMAT=COMPACT,如下所示: create table test(id int, name varchar(10)) row_format=compact; 2.mysql 1812错误: Error Code:1812. Tablespace is missing for table <table_name> copy的ibd文件没有赋权,请按照第二步执行权限
×
×
  • Create New...