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: unrecoveable cpg_pictures table  (Read 2906 times)

0 Members and 1 Guest are viewing this topic.

quikman

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
unrecoveable cpg_pictures table
« on: April 14, 2004, 04:17:27 am »

The cpg_pictures table is corrupted beyond repair. All the other tables appear to be Ok. Has anyone any advice on how best to fix the situation? Obviously I'll have to delete the table, but what to do after that? Recreate just the cpg_pictures table or do an install? What happens to all the images in the images stored in the albums? Any assistance gratefully accepted.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
unrecoveable cpg_pictures table
« Reply #1 on: April 14, 2004, 10:23:17 am »

did you try the repair functions of mySQL (e.g. using a tool like phpMyAdmin)? What exactly do you mean by
Quote
cpg_pictures table is corrupted beyond repair
? Did you mess with it or did it "break" by itself?
Obviously, if you delete the pictures table, all pics in your db will be lost, so you'll have to add them again (using btach-add). It's recommended not to do a fresh install, but just drop the table and create it again, so you won't lose registered users etc.

Posting a link might help...

GauGau
Logged

quikman

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
unrecoveable cpg_pictures table
« Reply #2 on: April 14, 2004, 11:21:50 am »

It "broke" itself. One day the gallery was there, the next day it wasn't. If I try to access the table using ISP provided tools, I get
Quote
Select failed: select * from cpg11d_pictures
Can't open file: 'cpg11d_pictures.MYD'. (errno: 145)

Minds greater than mine have subsequently tried to fix it using a range of tools including phpMyAdmin but have declared it unsalvageable.

A link? http://www.customart.co.nz/gallery/
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
unrecoveable cpg_pictures table
« Reply #3 on: April 14, 2004, 05:54:08 pm »

Out of curiosity, do you do frequent batch adds?
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

quikman

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
unrecoveable cpg_pictures table
« Reply #4 on: April 14, 2004, 10:54:52 pm »

No.

Only a few images get added each month, so they are added one at a time. In total there were about 90 images.
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
unrecoveable cpg_pictures table
« Reply #5 on: April 15, 2004, 01:15:39 am »

A nice article on database corruption in MySQL.

http://www.databasejournal.com/features/mysql/article.php/3300511
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

quikman

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
unrecoveable cpg_pictures table
« Reply #6 on: April 15, 2004, 10:25:42 am »

Quote from: "hyperion"
A nice article on database corruption in MySQL.

http://www.databasejournal.com/features/mysql/article.php/3300511
Thanks, I'll keep that URL as a handy reference. unfortunately I think everything suggested and more had been done.

The experts have told me that I can't blame Coppermine for the problem. If the damage had been done by a script, it would be repairable, so they say. Apparently such catastophic failures are rare. I hope they are correct.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.