Jump to content

Accessing old mysql tables


gevans

Recommended Posts

Hey guys,

 

My computer died a few days ago, and I've built a new system. I've also put a new hard drive and re-installed an operation system (XP). So that I can et back to my work quickly I've put xampp in place until I have a bit more time.

 

The hard drive from my old system (also xp) is now running as a slave so I can get everything off it. Is there anyway I am able to access MySQL on my old hard drive, export databases and tables and import it into my new installation?

 

Hope this makes sense. If you need any more info please let me know.

Link to comment
Share on other sites

New installation

---------------

MySQL

* Server version: 5.1.33-community

* MySQL charset: UTF-8 Unicode (utf8)

 

Server

* Apache/2.2.11 PHP/5.2.9

 

 

Old hard drive

-------------

MySQL

* Server version: 5.0

 

 

Most tables are MyISAM

There are ac ouple of InnoDB

Link to comment
Share on other sites

Ah yes, They all seem to be working fine. I tried copying everything across (excpet for the table `mysql` and user profile stuff), some databases show up with no table, though it has the correct number of tables in brackets that should be in the database!?

Link to comment
Share on other sites

Sorry to sound dumb, but any idea where I might find them if their not in the data/ folder??

 

Also... one of the databases is doing this....

 

#mysql50#vhd-main

 

Originally called 'vhd-main'

 

After copying across it adds '#mysql50#'

Link to comment
Share on other sites

Also... one of the databases is doing this....

 

#mysql50#vhd-main

 

Originally called 'vhd-main'

 

After copying across it adds '#mysql50#'

 

I've sorted that problem. Got an uptodate copy from the web

 

And if you have the old my.cnf file, you'll see where the datadir is.

 

I already have access to the datadir. (I also double checked in the my.ini file)

 

Some of the databases (that def had data) are adding the tables, but no data because as you said there's no myd/myi files only frm files. I can't figure out why they wouldn't have myd/myi files if they had data in 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.