.frm files contain metadata about the structure of the table. They do not contain your data.
For a MyISAM table, the .MYD is basically a table (without metadata or indexes); if he left, your data disappeared. There is probably a way to create “empty” files and start over, but yes. Without them, you have no data.
.MYI files contain AFAIK indexes. They can be restored, but not without data.
If your tables were InnoDB tables, you might be in luck. For InnoDB tables there will be no .MYD or .MYI ; the data that would be in them will be in ibdata1 . You could (after stopping mysqld) simply sneak the .frm and ib* files to the correct positions and let mysqld see them when you restart.
Of course, this will not work if you already have InnoDB data files - more precisely, if this happens, you will lose all existing InnoDB tables. In this case, you can put the files in another directory and run the mysqld instance pointing to that directory. This would be enough for a mysqldump table like SQL, so you can import it into a new database.
source share