Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 16th May 2016, 10:56 AM   #1
Warrior Member
 
Join Date: 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Is it possible to restore mysql database from frm myi and myd files only?
Share on: 
fb share twitter share gplus share more share

I accidentally deleted my database while testing mysql work bench.as its a relatively new db on a new server I had no back up running. Luckily I can see some frm, myi ,and myd files. afaik i had both innodb and Myisam tables and some stored procs. So is there any chance at all recovering the db from these files.
FrankKelly is offline  
Unread 17th May 2016, 04:36 AM   #2
VIP Warrior
War Room Member
 
Join Date: 2006
Location: , , USA.
Posts: 1,795
Thanks: 70
Thanked 287 Times in 259 Posts
Default
Re: Is it possible to restore mysql database from frm myi and myd files only?
Share on: 
fb share twitter share gplus share more share

If the files in that directory are complete, try creating a new, blank db and the copy all the files to the directory created for the new database.
KirkMcD is offline  
Unread 17th May 2016, 11:36 PM   #3
Warrior Member
 
Join Date: 2010
Posts: 18
Thanks: 0
Thanked 4 Times in 4 Posts
Default
Re: Is it possible to restore mysql database from frm myi and myd files only?
Share on: 
fb share twitter share gplus share more share

Yes it is possible to restore mysql database from those files.

WORDPRESS EXPERT FOR HIRE
shsaad is offline  
Unread 23rd May 2016, 12:11 PM   #4
Warrior Member
 
Join Date: 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Is it possible to restore mysql database from frm myi and myd files only?
Share on: 
fb share twitter share gplus share more share

Copy all your data folder into mysql/data folder (Folder to Store all database)
Create folder with name of your database under mySql_HOME/data folder OR folder where MYSQL save all database, on linux you can find it from my.ini file.
copy all your .myd, .myi, etc files into that folder and restart it,
I tried this things on windows and it works, and i am able to attached/detached all mySql database on this way. In a pinch, you can use the utility MySql Recovery Toolbox and try to restore your database. I think that you will succeed. http://www.oemailrecovery.com/mysql_recovery.html
KristofLakatos is offline  
Unread 23rd May 2016, 12:19 PM   #5
Warrior Member
 
Join Date: 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Is it possible to restore mysql database from frm myi and myd files only?
Share on: 
fb share twitter share gplus share more share

You can still read this resource for more information on your issue.
https://community.office365.com/en-us/f/172/t/266451
KristofLakatos is offline  
Unread 27th May 2016, 09:28 AM   #6
Warrior Member
 
Join Date: 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Is it possible to restore mysql database from frm myi and myd files only?
Share on: 
fb share twitter share gplus share more share

Thank you guys for your feedback and help. Sorry, that long time did not respond. This is because the issue was solved and I forgot to tell.) Thank you!
FrankKelly is offline  
Closed Thread


Bookmarks

Tags
database, files, frm, myd, myi, mysql, restore


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 02:16 PM.