coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: vulf on June 23, 2004, 05:31:30 PM

Title: database error
Post by: vulf on June 23, 2004, 05:31:30 PM
I was using 1.2.1 when suddendly I started receiving the notorious databse error message "there was an error when processing a database query". So I upgraded to 1.3 to see if that would fix things... no dice. Any help would be appreciated.


Here is the error:
While executing query "SELECT count(*) FROM cpg11d_pictures, cpg11d_albums WHERE cpg11d_pictures.aid = cpg11d_albums.aid AND category = 2" on 0

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



Here is the debug info:

USER:
------------------
Array
(
    [ID] => b1c189060d6ca804e3d5e04e65904b4c
    [am] => 1
    [liv] => Array
        (
           
Title: Re: database error
Post by: Casper on June 23, 2004, 05:40:18 PM
This message indicates your pictures table in the database is damaged.  Use you db tool to try a repair (it has an auto function), and see if that fixes it.
Title: Re: database error
Post by: vulf on June 23, 2004, 06:05:30 PM
Quote from: Casper on June 23, 2004, 05:40:18 PM
This message indicates your pictures table in the database is damaged.  Use you db tool to try a repair (it has an auto function), and see if that fixes it.
Can you give me a little more information about how to do this?
Title: Re: database error
Post by: Casper on June 23, 2004, 06:20:49 PM
Go to your database using your database tool.  Open the pictures table.  Click on the 'operations' tab at the top.  Look down the page and find 'repair table', and click it.
Hopefully, that's all it will need.
Title: Re: database error
Post by: Joachim Müller on June 24, 2004, 09:36:03 PM
Recommended database tool: phpMyAdmin (http://www.phpmyadmin.net/)

GauGau