Restore Mysql from .frm .ibd Restore from file .frm .idb if your server can not service engine databases

Download mysqlfrm form mysqlunitl > https://downloads.mysql.com/archives/utilities/ (old link)
mysqlfrm --diagnostic /usr/local/mysql/data/test/new_table.frm
MySQL Or Mariadb
Crate Your Tables on your database.
Alter table XXXX discrd tablespace
Copy your *.ibd (MySQL Or Mariadb) to  MySQL Or Mariadb data path
Alter table XXXX import tablespce