|
Alden Bates' WeblogFeigning normality since 1973Converting FRM/MYD/MYI database files to SQLFiled in: Website Management. As I mentioned last night, I had to restore some database files. Unfortunately the backup I'd downloaded was in a tarred/gzip file with each database table represented by three files with the extensions frm, myd and myi. After googling a bit (dear Google: please don't bother giving me "Supplemental result" listings if the target page is gone and you don't have a cache copy of it. That's just dumb.) I found that these were raw SQL database files. The only way to restore them is appeared to be to copy them directly to MySQL's data directory - the problem being that I didn't actually have access to the MySQL data directory on the web server in question. You would think, given that phpMyAdmin had given me these files as a backup that it would have an easy way to restore them, but if it does, I couldn't find it. The solution ended up being:
Once the tables were restored, I used a couple of SQL statements to copy the data across to the appropriate table, and all was hunky dory. Posted December 9, 2005 9:37 PM CommentsHi,
Is there any way to restore it? Does anything inside it (‘mysql’ directory) changes? I think it does, because in another machine (which also has MySQL installed), I can see few file’s timestamps that are different from other files such as user.MYI, db.MYI, db.MYD, & user.MYD Any idea how I can restore 'mysql' database directory?
Posted by: Gaurav Chhabra | February 4, 2010 2:58 AM omg i used easyphp and did what u said its now working like charm u saved my site really really thanks ! Posted by: Burak | March 8, 2010 10:27 AM Post a comment | |
Thank you VERY MUCH! You saved my site!
Posted by: WeBaRTer | October 28, 2009 1:51 AM