Jump to content

[SOLVED] Recovering a DB from files


alex3

Recommended Posts

I've a had a system problem and can only access the hard drive, not the OS (I can't boot in to it).

 

I can access what I think is my old database. It's OS X I can't access, but I can see the drive contents in Ubuntu. Using MAMP, I've found the DB in /Applications/MAMP/db/mysql/database_name. The permissions on this folder are such that I can't see it's contents in nautilus but using ls in the terminal I can see a db.opt file, and three files for each table in the database, in this form: table_name.frm, table_name.MYD, table_name.MYI.

 

How can I recover the data in these files and put them in a new database? Ideally, I'm looking to 'convert' these files in SQL commands I can just put into phpMyAdmin and recreate the tables.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.