Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL
Author Message
beerfrog
Regular
Regular



Joined: Sep 11, 2005
Posts: 54
Location: Sweden

PostPosted: Wed Aug 02, 2006 3:11 pm Reply with quote

Hi all!

I just nuked my database, it gone forever.

Searching my harddrives I found 2 backups

One dated 2005-12
One dated 2006-02

I can restore from the 2005 file, but not from the 2006 one.

When trying the 2006 it says that no tables are created

So I try to first restore the 2005(with 16 000 entries) and the restore the 2006 (with 18 000 entries) over the 2005.
It says 18 000 entries are made successfully, but when I create a new backup and compare it, I cant find the new categories and content that is in the 2006 backup?

Can anyone share some thoughts on this with me?

Cheers / B

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Wed Aug 02, 2006 3:38 pm Reply with quote

Are the backups in the same format? Which format? Did you export the database or back it up?

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
beerfrog







PostPosted: Thu Aug 03, 2006 12:25 am Reply with quote

hmm, me being a real novice at this isint making things easier...

I have made theese backups by exporting the database in myPhpadmin to a .sql-file.

what is the difference in exporting in myphpadmin or using the "backup database" feature in the phpnuke admin-panel?

have I answered your questions kguske?

cheers / b
 
kguske







PostPosted: Thu Aug 03, 2006 5:03 am Reply with quote

Exporting to an sql file creates a text file that cannot be used with the restore function in phpMyAdmin. However, it can be used with the SQL function.

Backup create a compressed file that can be used with restore.
 
beerfrog







PostPosted: Thu Aug 03, 2006 6:59 am Reply with quote

Okey, this confuses me Smile

What I've done is that I have exported my database tables to a sql-file i myphpAdmin.

Then when I try to restore I go to the SQL-tab in myphpadmin and point to the exported sql-file.

This workes fine with one of my files but not with the other, and I cant figure out why that is....

Cheers / B
 
kguske







PostPosted: Thu Aug 03, 2006 10:20 am Reply with quote

Try loading it through the SQL tab, rather than through restore.
 
beerfrog







PostPosted: Thu Aug 03, 2006 1:23 pm Reply with quote

kguske wrote:
Try loading it through the SQL tab, rather than through restore.


Thats is what i'm doing.

I dont know any other way then through the sql-tab Sad

But the wierd thing is that one file is ok ond the other (the newer one) is not ok, it fails...

And I cant figure out why, and what the difference between them is?

cheers / B
 
kguske







PostPosted: Thu Aug 03, 2006 5:49 pm Reply with quote

Can you open the second file in a text editor?
 
beerfrog







PostPosted: Thu Aug 03, 2006 11:19 pm Reply with quote

kguske wrote:
Can you open the second file in a text editor?


yes!

/B
 
kguske







PostPosted: Fri Aug 04, 2006 7:24 am Reply with quote

Guess I should've asked the next obvious question: is the SQL all there? Is it corrupt? Does it execute if you paste it into phpMyAdmin?
 
beerfrog







PostPosted: Fri Aug 04, 2006 9:05 am Reply with quote

Ok, here is where we're testing my SQL-Limits Smile

When I compare the 2 filoes they look alike but only the old one seems to work.

How do I paste it into phpMyAdmin to execute it?

Thx for trying to help me even if I am slow at this Wink

Cheers / B
 
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Fri Aug 04, 2006 2:26 pm Reply with quote

is this solved beerfrog ?
 
View user's profile Send private message
beerfrog







PostPosted: Fri Aug 04, 2006 2:28 pm Reply with quote

hitwalker wrote:
is this solved beerfrog ?


No, sadly not yet!

Cheers / B
 
hitwalker







PostPosted: Fri Aug 04, 2006 2:37 pm Reply with quote

how large is the mysql file?
 
beerfrog







PostPosted: Fri Aug 04, 2006 2:38 pm Reply with quote

hitwalker wrote:
how large is the mysql file?

Just under 1,5 mb

/B
 
hitwalker







PostPosted: Fri Aug 04, 2006 2:39 pm Reply with quote

you have msn ?
 
beerfrog







PostPosted: Fri Aug 04, 2006 2:40 pm Reply with quote

hitwalker wrote:
you have msn ?


Yes Wink
 
beerfrog







PostPosted: Fri Aug 04, 2006 3:35 pm Reply with quote

This sad story comes to a happy end with Hitwalker making a hero effort in helping me restore the database by hand!

It set me back about 5 months but it is way better then the alternative (to start from scratch).

Thx, kguske for trying, and thx Hitwalker again for taking your time to help a trusting stranger!

Cheers all / B
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Fri Aug 04, 2006 3:39 pm Reply with quote

Nice one H
 
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©