coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: mrpepsi on May 15, 2006, 12:16:32 AM

Title: There was an error while processing a database query
Post by: mrpepsi on May 15, 2006, 12:16:32 AM
This just started happening within the last 2 days. I reinstalled everything and it acted ok until I created albums and add photos. Any help would be appreciated.  url  http://www.eastgermanshepherdpups.com/gallery/

While executing query "SELECT * FROM cpg145_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8" on 0

mySQL error: Can't create/write to file '/var/tmp/#sql_11b87_0.MYI' (Errcode: 2)

Here is the debug info


USER:
------------------
Array
(
    [ID] => 28ca3703c222aba7dfb65e5ebc9109d9
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => mrpepsi
    [groups] => Array
        (
           
Title: Re: There was an error while processing a database query
Post by: Nibbler on May 15, 2006, 12:25:06 AM
Ask your host for support, it's not a Coppermine issue.
Title: Re: There was an error while processing a database query
Post by: Paver on May 15, 2006, 12:28:18 AM
I believe that's a MySQL server error.  It might be fixed by using "REPAIR TABLES" on your Coppermine tables (in a tool like phpMyAdmin), but I'm not sure.  This is a fairly common error (common for the rare times when MySQL runs into errors).  It might be mentioned in other threads on this forum, and it's certainly mentioned on MySQL's website.

I'm guessing either you "REPAIR TABLES" and it's fixed or you have to ask your webhost/MySQLhost about it, but others might have more certain & specific information for you (like Nibbler as I was writing this).
Title: Re: There was an error while processing a database query
Post by: mrpepsi on May 15, 2006, 12:29:28 AM
It has been working for months then all of a sudden it started giving me this error.

Thanks
Title: Re: There was an error while processing a database query
Post by: Paver on May 15, 2006, 02:26:54 AM
MySQL tables can go bad sometimes, all of a sudden.  That file it cannot write is an internal file MySQL uses for database stuff.  Many times you don't lose any data, MySQL just needs some attention to get it back on track.
Title: Re: There was an error while processing a database query
Post by: Joachim Müller on May 15, 2006, 06:51:44 AM
http://forum.coppermine-gallery.net/index.php?topic=9415.0