coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: cluj on February 06, 2007, 08:13:27 AM

Title: sql problem
Post by: cluj on February 06, 2007, 08:13:27 AM
everything went fine for a few months but now I get this:

"While executing query "SELECT user_id as user_id,user_name as user_name,COUNT(DISTINCT a.aid) as alb_count,COUNT(DISTINCT pid) as pic_count,MAX(pid) as thumb_pid, MAX(galleryicon) as gallery_pid FROM cpg_albums AS a INNER JOIN `albumef_copp1`.cpg_users as u on u.user_id = a.category - 10000 INNER JOIN cpg_pictures AS p ON p.aid = a.aid WHERE ((isnull(approved) or approved='YES') AND category > 10000)  GROUP BY category ORDER BY category LIMIT 0, 12 " on 0

mySQL error: Out of memory (Needed 1048548 bytes)"

in file: /home/albumef/public_html/include/functions.inc.php - Line: 249
Title: Re: sql problem
Post by: Joachim Müller on February 06, 2007, 08:26:24 AM
Well, looks like you're out of memory ::). Ask your webhost for support. Not related to initial install, moving thread accordingly.
Title: Re: sql problem
Post by: cluj on February 06, 2007, 04:24:30 PM
i am the web host, I have my own server and the site has unlimited memory so what's going on?
Title: Re: sql problem
Post by: Nibbler on February 06, 2007, 04:53:17 PM
It's an error from MySQL, not Coppermine. You'd need to investigate that yourself as it is a server setup issue. There is no such thing as unlimited memory.
Title: Re: sql problem
Post by: cluj on February 06, 2007, 05:36:36 PM
ok so what do I have to change to increase the memory?
Title: Re: sql problem
Post by: Nibbler on February 06, 2007, 05:39:15 PM
I have no idea. Refer to the MySQL documentation or search the web.
Title: Re: sql problem
Post by: cluj on February 06, 2007, 05:43:55 PM
how do you increase yours?
Title: Re: sql problem
Post by: cluj on February 06, 2007, 05:47:54 PM
i restarted the sql server and it fixed itself

thanks
Title: Re: sql problem
Post by: Joachim Müller on February 07, 2007, 06:54:33 AM
Ah, the joys of self-hosting ::). Marking as solved.