Reset Everything with only one click! Reset Everything with only one click!
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Reset Everything with only one click!

Started by nova-bossa, May 09, 2004, 04:50:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nova-bossa

how can i reset/delete AT ONCE (!!!) ALL ratings and ALL comments and ALL most viewed?

Joachim Müller

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

nova-bossa

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!

Joachim Müller

#3
  • to delete all comments in the comments table:TRUNCATE `cpg11d_comments`
  • to delete all ratings (votes) from the votes table:TRUNCATE `cpg11d_votes`
  • to get rid of the votes count from all pics:UPDATE `cpg11d_pictures` SET `pic_rating` = '0', `votes` = '0';
  • to set the views counter to zero for all pics:UPDATE `cpg11d_pictures` SET `hits` = '0'

nova-bossa

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'"

Joachim Müller

sorry, must be "hits", not "hit" :-[. I corrected my above posting as well, so others will not run into the same issue.

GauGau