scoopmcloop
Technical User
I would like to rebuild a MySQL table from binary files.
I have the binary files for my_table in the files my_table.frm, my_table.MYD and my_table.MYI.
I would like to generate an SQL statement to export the data.
I created my_db on my local machine and then created the table my_table. This automatically created 3 files in /var/lib/mysql/my_db which are my_table.frm, my_table.MYD and my_table.MYI. I deleted these files.
Then I copied the original files (the ones with the data I need) into /var/lib/mysql/my_db so once again it contained my_table .frm, .MYD and .MYI files.
When I logged into mysql and ran DESCRIBE my_table; i got this message:
How can I get the data out of these binary files?
I have the binary files for my_table in the files my_table.frm, my_table.MYD and my_table.MYI.
I would like to generate an SQL statement to export the data.
I created my_db on my local machine and then created the table my_table. This automatically created 3 files in /var/lib/mysql/my_db which are my_table.frm, my_table.MYD and my_table.MYI. I deleted these files.
Then I copied the original files (the ones with the data I need) into /var/lib/mysql/my_db so once again it contained my_table .frm, .MYD and .MYI files.
When I logged into mysql and ran DESCRIBE my_table; i got this message:
Code:
ERROR 1017: Can't find file: './my_db/my_table.frm' (errno: 13)