Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: lost my database  (Read 4037 times)

0 Members and 1 Guest are viewing this topic.

xt3rm

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
lost my database
« on: October 04, 2004, 06:14:43 am »

Due to the hurricanes in Florida, the server hosting my gallery died.  Now the server is back up but the database the gallery was using is gone.  All the files and photos are still on the server though.  What should I do??

Is there any way to get the gallery back up?  I don't mind if the users need to reregister cos theres only a couple, with only 2 user galleries, but theres heaps of photos.  Also there was a phpBB forum integrated but I don't mind if I lose that.

Any help would be appreciated thanks!
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: lost my database
« Reply #1 on: October 04, 2004, 11:12:06 am »

I would hope your host will be able to recover the database.  Have you contacted them?
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

tanfwc

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 108
    • tanfwc.com
Re: lost my database
« Reply #2 on: October 04, 2004, 03:49:55 pm »

Hope you got your copy of database back. I think your host should have offside backup. Let them know and they can help you happily. Don't use angry tone ;)
Logged
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Pacjack

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
Re: lost my database
« Reply #3 on: October 04, 2004, 03:54:14 pm »

Is there any other way to "regenerate" the database in some way? Or is there any way to add pictures to the database again, when the picture files are still on the server, but not in the database? (except for batch-add)

This because i lost the last two months of my database (pictures, comments) in some strange way... :(
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: lost my database
« Reply #4 on: October 04, 2004, 04:24:20 pm »

You can't recover the data if there's no backup.  All you can do is batch add the pictures that aren't in your user's galleries and use a tool like phpmyadmin to manually add the other pictures back into your user's galleries.  You won't have any of the extra data, like comments and hits.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

xt3rm

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: lost my database
« Reply #5 on: October 07, 2004, 07:55:09 am »

Thanks for the help guys, greatly appreciated.

I've contacted the host and unfortunately the database can't be recovered.
If I want to readd everything, how would I go about doing it??

I have recreated the database which is now empty and when I go to the site I get the error:
Quote
Notice: Undefined index: debug_mode in /home/www/photos/include/functions.inc.php on line 96
Fatal error :
There was an error while processing a database query

Do I need to run install again or something else??
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: lost my database
« Reply #6 on: October 07, 2004, 12:08:08 pm »

Yes, you need to run the installer again.  If you dropped all the tables and recreated your database, there's nothing for Coppermine to connect to.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

xt3rm

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: lost my database
« Reply #7 on: October 07, 2004, 02:29:34 pm »

I've run the installer again by deleting the include/install.lock file and it installed properly but when I go to the site I get the error:
Quote
Fatal error :
There was an error while processing a database query

Is there somethine else I need to do?
I've tried delteing the database again and I still get the same thing.
Logged

Nibbler

  • Guest
Re: lost my database
« Reply #8 on: October 07, 2004, 05:33:27 pm »

Enable debug mode and post the real error. If you can't get into coppermine then you'll have to edit the debug_mode value in the config table to 1.
Logged

xt3rm

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: lost my database
« Reply #9 on: October 08, 2004, 03:54:09 am »

Thanks.

Sorry, it was the integrated board that was the problem.  I didn't tell u guys about it.
Anyway I changed the init.inc file to disable integration and it worked.  Then I just changed it back and it still worked.  :)

Anyway I'm adding all the photos back now.  The batch added files are all done. With the user photos, kegobeer you suggested using phpmyadmin, but that would seem tedious plus I have no idea how to do it.

Would there be another way to add them?  I thought maybe moving the photos over to the batch add area and adding them myself, but how would i go about making it seem as if the user uploaded it themselves and giving them access to their files?
Logged
Pages: [1]   Go Up
 

Page created in 0.057 seconds with 15 queries.