#1 2019-05-22 02:06:47

kdmiller45
Member
Phoenix
2018-07-16
71

remove all comments

Hello/Hi/Greetings,

Want to delete all comments got hit and now have over 4000 comments


Environment •Piwigo 2.9.5
•Operating system: Linux
•PHP: 7.2.17-0ubuntu0.18.04.1 (Show info) [2019-05-21 18:05:50]
•MySQL: 5.7.26-0ubuntu0.18.04.1 [2019-05-21 17:05:50]
•Graphics Library: ImageMagick 6.9.7-4

Offline

 

#2 2019-05-24 17:35:14

k5
Member
2017-11-05
68

Re: remove all comments

Hello/Hi/Greetings,
  try to log in admin ---> tools ----> comments
(check all)

thank you

Offline

 

#3 2019-05-24 17:56:28

kdmiller45
Member
Phoenix
2018-07-16
71

Re: remove all comments

That works fine, but it only allows you to delete 10 at a time, I'd have to repeat that about 400 times LOL

Thanks for trying, was hoping there was a Bulk delete

Offline

 

#4 2019-05-25 11:51:33

erAck
Only trying to help
2015-09-06
2183

Re: remove all comments

You can use phpMyAdmin, or whatever database admin frontend your hoster offers.

Backup your database!

Open the Piwigo database, locate table piwigo_comments (or with the corresponding prefix instead of piwigo_ if you used a different one), open it, let all rows display (or in bulks of 500 or so), select all, delete.

If you have access to command line SQL only, the command for the not faint of heart would be TRUNCATE TABLE piwigo_comments or if truncate is not available then DELETE FROM piwigo_comments


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2019-05-25 16:33:42

kdmiller45
Member
Phoenix
2018-07-16
71

Re: remove all comments

Let me ask a stupid question, I have access to PHPAdmin, if I delete this field, of course the comments will be gone,  if a valid user try's to enter a comment,  that won't happen or will the system automatically create the new field and allow the valid comment

Offline

 

#6 2019-05-25 19:08:30

erAck
Only trying to help
2015-09-06
2183

Re: remove all comments

Do not delete "a field" nor the structure of the table, delete the records of the table piwigo_comments, that is you clear the table of all records, not the table itself nor any fields. You will lose all existing comments. New comments will be added to the table.


Running Piwigo at https://erack.net/gallery/

Offline

 

#7 2019-05-25 19:14:51

kdmiller45
Member
Phoenix
2018-07-16
71

Re: remove all comments

That worked Great thanks alot, was very unsure about messing with the data base like that, but was easy

Thanks again

Keith

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact