coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: nova-bossa on May 09, 2004, 04:50:06 PM

Title: Reset Everything with only one click!
Post by: nova-bossa on May 09, 2004, 04:50:06 PM
how can i reset/delete AT ONCE (!!!) ALL ratings and ALL comments and ALL most viewed?
Title: Re: Reset Everything with only one click!
Post by: Joachim Müller on May 09, 2004, 06:41:58 PM
out-of-the-box, with built-in coppermine tools: not at all.
I recommend using a tool like phpMyAdmin and running an apropriate query there (backup your stuff first in case anything goes wrong).

GauGau
Title: Re: Reset Everything with only one click!
Post by: nova-bossa on May 09, 2004, 09:08:03 PM
Quote from: GauGau on May 09, 2004, 06:41:58 PM
I recommend using a tool like phpMyAdmin and running an apropriate query there (backup your stuff first in case anything goes wrong).

GauGau

thanks.
but could you please give me the examples above?
i'm still learning to use mysql...

thanks for your pacience!
Title: Re: Reset Everything with only one click!
Post by: Joachim Müller on May 09, 2004, 11:42:03 PM
Title: Re: Reset Everything with only one click!
Post by: nova-bossa on May 10, 2004, 08:55:23 AM
thank you!

the first three worked fine.
but for the last one:
Quote from: GauGau on May 09, 2004, 11:42:03 PM

  • to set the views counter to zero for all pics:UPDATE `cpg11d_pictures` SET `hit` = '0'

i got this error message:

"#1054 - Unknown column 'hit' in 'field list'"
Title: Re: Reset Everything with only one click!
Post by: Joachim Müller on May 10, 2004, 10:49:38 AM
sorry, must be "hits", not "hit" :-[. I corrected my above posting as well, so others will not run into the same issue.

GauGau