Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Directly comand for delete topic inside board in mysql

Aloittaja edi67, tammikuu 25, 2009, 03:50:19 IP

« edellinen - seuraava »

edi67

I have this problem:
http://www.simplemachines.org/community/index.php?topic=267778.msg1890759#msg1890759

so i asking if there is one directly comand that i can launch by MYSQL panel for DELETE topic in one specific board, i want empty that board directly by Myphpadmin panel, because i cannot prune Recycle Bin using admin panel in forum.

thx for help
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Kermit

Here is our SQL query

DELETE FROM smf_topics WHERE smf_topics.id_board = 'x';

x should be replaced with the board id of the related board,after running this SQL query,you should run Recount all forum totals and statistics option as well
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Lainaa
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

edi67

Everything work good thx, the only thing that remains is the Number of Posts in description of section , total of Topics are 0 but total of posts inside that specific section are always the same, by the way the section is empty now.
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Rumbaar

I'm sure there is a better method to call the delete topic function used by SMF, but I'm not sure what that is.

Try to run the Find and Repair or Recount maintenance to see if that addresses that issue.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

edi67

Lainaus käyttäjältä: Rumbaar - helmikuu 04, 2009, 11:24:24 IP
I'm sure there is a better method to call the delete topic function used by SMF, but I'm not sure what that is.

Try to run the Find and Repair or Recount maintenance to see if that addresses that issue.

i think the same the SMF method is the best but not work for me directly in admin panel i tryed everything but nothing only Duncan comand work for now
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

karlbenson

Damn, I wish I'd seen this topic earlier.

You shouldn't just run a single query like that.
Topics affect multiple tables.  and you will cause great inaccuracies/bugs or even fatalerrors by running just this query.
(let alone the statistical issues).

You should have used the function removeTopics in Sources/RemoveTopic.php

Rumbaar

That's what I meant when I said 'delete topic function used by SMF'.

But the find and repair errors might be able to fix any orphan post and links now.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: