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: Database Query Errors  (Read 3915 times)

0 Members and 1 Guest are viewing this topic.

tearcharmer

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Database Query Errors
« 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:

Quote
While 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.
« Last Edit: July 16, 2006, 11:10:33 am by GauGau »
Logged

tearcharmer

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Database Query Errors
« Reply #1 on: July 16, 2006, 06:04:02 am »

Problem solved, I believe.
Logged

tearcharmer

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Database Query Errors
« Reply #2 on: July 16, 2006, 06:16:53 am »

Yes, I fixed it.

(Sorry for a waste of a thread.)
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Database Query Errors
« Reply #3 on: July 16, 2006, 07:33:55 am »

Please write your solution for others....
Logged
‍I don't answer to PM with support question
Please post your issue to related board

lesault

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
    • www.ThePoltergeist.com
Re: Database Query Errors
« Reply #4 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:
  • Browse to the relevant database
  • Click 'Execute SQL' and enter the following for each table.
Code: [Select]
CHECK TABLE tablename   eg. CHECK TABLE cpg133_albumsMany 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
Code: [Select]
REPAIR TABLE cpg133_pictures QUICKThis 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.
« Last Edit: October 06, 2006, 06:34:15 pm by lesault »
Logged
www.thepoltergeist.com - Are YOU brave enough?
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.