Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 1,090
Likes: 30
Old Hand
Old Hand
Joined: Jun 2006
Posts: 1,090
Likes: 30
Hi

As mentioned before I imported UbbClassic 6.7.3 to Threads 7.3.1

I noticed I had about 8000 private topics and there must be
a whole bunch in our members too. So
how can I easily clean up and erase all private topics for all members.
Would like to start all over with the private topics as there are many member not using the site and I like to get the space they take on the database.

Thanks in advance for your secure advice... wink


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
You'll need to run a few SQL commands from the control panel:

SQL Query
delete from ubbt_PRIVATE_MESSAGE_TOPICS

SQL Query
delete from ubbt_PRIVATE_MESSAGE_POSTS

SQL Query
delete from ubbt_PRIVATE_MESSAGE_USERS

SQL Query
update ubbt_USER_PROFILE
set USER_TOTAL_PM ='0'

Joined: Jun 2006
Posts: 1,090
Likes: 30
Old Hand
Old Hand
Joined: Jun 2006
Posts: 1,090
Likes: 30

tested all above commands and got error messages on all.
below was the last, I replaced some of the reply path and table data with xxxxxxxxx

Control panel message
Script: /home/xxxxxx/xxxx/x/x/xxxxxxxx/html/forums/admin/dodbcommand.php
Line#: 101
SQL Error: Table 'xxxxxxxxxxxxx.ubbt_USER_PROFILE' doesn't exist
SQL Error #: 1146
Query: update ubbt_USER_PROFILE set USER_TOTAL_PM ='0'


Any comment on what I did wrong???


Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Jun 2006
Posts: 1,090
Likes: 30
Old Hand
Old Hand
Joined: Jun 2006
Posts: 1,090
Likes: 30
I saw this in the CP

Table Prefix:
The prefix was determined during initial installation and may not be changed. ubbt_bbf

does this mean I should change the query to
delete from ubbt_bbf_PRIVATE_MESSAGE_TOPICS
???


Last edited by Morgan; 09/27/2008 8:09 AM.

Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Aug 2006
Posts: 1,360
Likes: 2
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,360
Likes: 2
No, replace ubbt_ with ubbt_bbf

no need for an additional underscore there.


[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 1,090
Likes: 30
Old Hand
Old Hand
Joined: Jun 2006
Posts: 1,090
Likes: 30
like this???

delete from ubbt_bbfPRIVATE_MESSAGE_TOPICS

or... can you please type the whole line?




Morgan Johansson
BritBike Forum
https://www.britbike.com/forums/ubbthreads.php
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Yep, you got it:

delete from ubbt_bbfPRIVATE_MESSAGE_TOPICS


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Having issues going from 7.5.5. to 8X
by Mors - 10/22/2026 1:32 PM
Slow Queries - Any Ideas?
by BellaOnline - 10/16/2026 4:34 PM
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
Who's Online Now
1 members (Gizmo), 1,736 guests, and 156 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)