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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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