I tried tar of files in old directory, copy to new machine, making same name directory and untar, but when I log in to the DB and issue commands:
use database_name;
I get an error
Didn't find any fields in table 'database_name'
and after that I uissue
select * from table_name;
I get
ERROR 1033: Incorrect information in file: './database_name/table_name.frm'