https://downloads.mysql.com/archives/utilities/
mysqlfrm --diagnostic a1.frm
首先官网下载工具,解析出frm中的create table语句 ,然后执行
1、create table
2、执行 alter table `a1` discard tablespace ; 执行完之后,数据库目录下的user.ibd文件就没了
3、把你备份的ibd放到消失的a1.ibd文件那里。
4、给这个文件加权限,chown mysql:mysql a1.ibd
5、执行 alter table `a1` import tablespace; 执行完,表数据就可读了.