coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: mikerips on August 03, 2004, 05:54:38 PM

Title: here was an error while processing a database query!!
Post by: mikerips on August 03, 2004, 05:54:38 PM
Starting yesterday I have been getting a database error.  I am using PHP Version 4.3.6 and apache 1.3.

Any help?



USER:
------------------
Array
(
    [ID] => 692db562aab4d382a9ab0ff4e6de559f
    [am] => 1
    [sort] => dd
    [liv] => Array
        (
           
Title: Re: here was an error while processing a database query!!
Post by: Casper on August 03, 2004, 06:00:22 PM
It helps if you tell us what the database error actually says. In your case, it is this;

QuoteWhile executing query "SELECT COUNT(*) from cpg130_pictures WHERE aid='1'  AND approved='YES' " on 0

mySQL error: Can't open file: 'cpg130_pictures.MYD'. (errno: 145)

This usually means your db table is corrupted.  Use your db tool, and go to the pictures table, click on the 'operations' tab, and select 'repair'.

Hopefully, this will fix it.