"There was an error while processing a database query&q "There was an error while processing a database query&q
 

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]

Main Menu

"There was an error while processing a database query&q

Started by SurfDude, October 22, 2003, 10:09:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SurfDude

When I try to open my gallery, I get the error "There was an error while processing a database query". Before this, all worked just fine, and I don't think I have changed anything. What happened?
Frans AKA SurfDude || My Gallery

jasendorf

we need a screen shot or some more information... can you turn debugging on (last option in config page)?
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

SurfDude

Quote from: "jasendorf"we need a screen shot or some more information... can you turn debugging on (last option in config page)?
Debugmode gives this error:

QuoteWhile executing query "SELECT count(*) FROM cpg11d_pictures, cpg11d_albums WHERE cpg11d_pictures.aid = cpg11d_albums.aid AND category = 4" on 0

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

File: c:\phpdev\www\fotosvoorerror\include\functions.inc.php - Line: 105
Frans AKA SurfDude || My Gallery

jasendorf

Try repairing the table in MySQL  (perhaps through phpMyAdmin)
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

SurfDude

Quote from: "jasendorf"Try repairing the table in MySQL  (perhaps through phpMyAdmin)
How should I do that?  :?
Frans AKA SurfDude || My Gallery

jasendorf

Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

SurfDude

Quote from: "jasendorf"http://www.mysql.com/doc/en/Repair.html
I'm running my server on Windows XP. I think I have to run "myisamchk", but how do I do that with windows XP?
Frans AKA SurfDude || My Gallery

SurfDude

I've done a repair on that table with phpMyAdmin, and now it works all fine (again)!
Frans AKA SurfDude || My Gallery

Zarsky

surfdude,

Congradulations on resolving your problem....primarily through your own diligence.


PS...  There is a lesson to the other grasshoppers on this board.  I think us devs are all willing to help anyone, but sometimes you have to learn to use the relevant resources widely available.
Read the Online DOCs, FAQ, and SEARCH the board BEFORE posting questions for help.

jasendorf

Quote from: "zarsky99"PS...  There is a lesson to the other grasshoppers on this board.  I think us devs are all willing to help anyone, but sometimes you have to learn to use the relevant resources widely available.

Yeah, some devs give you fish (if they've got some spare), some teach you to fish... and then there's those like me who point at the lake and then run off for band rehearsal!
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.