coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: jmc on March 08, 2004, 01:36:47 AM

Title: database crash - critical error 127
Post by: jmc on March 08, 2004, 01:36:47 AM
Ack! Had to happen one day!
My box froze on me and after reboot, I can't get into my Club Gallery index. I switched on debug mode and get the following:

While executing query "SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (1, 4, 5, 6) AND approved = 'YES' GROUP BY aid" on 0

mySQL error: Got error 127 from table handler

File: C:\PROGRAM FILES\ABYSS WEB SERVER\htdocs\cpg\include\functions.inc.php - Line: 105

( Line 105 says: cpg_die(CRITICAL_ERROR, $out, __FILE__, __LINE__); )

DEBUG INFO:
USER:
Array
(
    [ID] => 8726b3cd9d91ef7ee6e8272fd02923c2
    [am] => 1
    [liv] => Array
        (
           
Title: database crash - critical error 127
Post by: Joachim Müller on March 08, 2004, 07:05:57 AM
before doing a fresh install, I recommend backing up what you have right now and then trying to restore the database, using the built-in mySQL repair functions (preferrably over a db tool like phpMyAdmin).

The best way to be safe of such catastrophes in the future is to do regular backups both of the albums folder and of the database (while it's still running).

GauGau