Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

My Site Down. Re installed MySQL copy DB files back?

Question posted by: dlite922 (Site Addict) on July 3rd, 2008 10:38 PM
MySQL installation took a dump, (Windows XP) so I reinstalled, now the service starts fine.

I want to put the my databases back. I tried to just do a copy of the data folder from old install to new and that didn't work.

Then I copied everything BUT the ibdata1 file, but now the service starts, but how can I get it to recognize the database folders/file

I made a complete back of my old installation directory so I have everything in tact there.

I'll try replacing everything, not just data folder and see if that works (including my.ini file)

But then again wouldn't that just bring whatever problem there was back? It would if the problem was with MySQL and not windows.

Site currently displaying no data and client dev sites are down,

Help me out if you can,


-Dan
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
dlite922's Avatar
dlite922
Site Addict
529 Posts
July 3rd, 2008
11:12 PM
#2

Re: My Site Down. Re installed MySQL copy DB files back?
UPDATE:

I got it to work, but now i can't SELECT any data from the most important database I needed . I get table doesn't exist.

I copied the databases and now they exist. MySQL users are back and can log in successfully.

All the other databases are fine, but with mine I see all the tables with "show tables" but I can't describe or select anything from them. I get table does not exist.

Why didn't mine get copied with the other ones.

The *.frm files are there and they have the right file sizes, but there isn't any MYD and MYI for each of the tables like I noticed on the other database that DO work.

But why did this work with my last install? There were no MYD and MYI files for this database on the last working install.

any help?


-Dan


UPDATE:

here's what I get when I try to repair a table.
Code: ( text )
  1. mysql> REPAIR TABLE news;
  2. +----------+--------+----------+--------------------------------+
  3. | Table | Op  | Msg_type | Msg_text                  |
  4. +----------+--------+----------+--------------------------------+
  5. | dmc.news | repair | Error | Table 'dmc.news' doesn't exist |
  6. | dmc.news | repair | error | Corrupt                        |
  7. +----------+--------+----------+--------------------------------+
  8. 2 rows in set (0.00 sec)

Reply
Reply
Not the answer you were looking for? Post your question . . .
182,266 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Top MySQL Forum Contributors