coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: tearcharmer on July 16, 2006, 05:54:45 AM

Title: Database Query Errors
Post by: tearcharmer on July 16, 2006, 05:54:45 AM
I know that there have been other threads that have been posted on this issue and this is the second time that this error has happened to me with Coppermine. From what I remember, you go into PHPmyadmin and reset some sort of code by type a single word that resets the error. I remember doing this last time. But, I don't remember exactly what I did.

This is the error I get when the gallery is in debug mode:

QuoteWhile executing query "SELECT sum(hits) FROM cpg143_pictures as p LEFT JOIN cpg143_albums as a ON p.aid=a.aid WHERE 1" on 0

mySQL error: Got error 127 from storage engine

If anyone can help me, that'd be lovely. I appreciate it. Thank you.
Title: Re: Database Query Errors
Post by: tearcharmer on July 16, 2006, 06:04:02 AM
Problem solved, I believe.
Title: Re: Database Query Errors
Post by: tearcharmer on July 16, 2006, 06:16:53 AM
Yes, I fixed it.

(Sorry for a waste of a thread.)
Title: Re: Database Query Errors
Post by: Sami on July 16, 2006, 07:33:55 AM
Please write your solution for others....
Title: Re: Database Query Errors
Post by: lesault on July 24, 2006, 11:49:27 PM
Thanks for setting me on the right track - I was getting the same error.

To fix it, I did the following using webmin:
CHECK TABLE tablename   eg. CHECK TABLE cpg133_albums
Many of the tables said that they had been improperly closed - this seems to be ok, ignore them.
cpg133_pictures reported that link 1508 was damaged (I forgot to take a note of the exact message, sorry)
I then did
REPAIR TABLE cpg133_pictures QUICK
This gave lots of lines of information, the last line read 'OK'
 
  The gallery was then visible again. I've taken a backup of the database and will do more regularly from now on! Thanks again for saving my gallery!  ;D

Regards,

Lesault.