Previous Thread
Next Thread
Print Thread
Hop To
#204277 01/03/2008 1:25 PM
Joined: Nov 2007
Posts: 99
T
journeyman
journeyman
T Offline
Joined: Nov 2007
Posts: 99
I had two users that were using the board for Pming only and want to just delete the PMs on the ubbt_PRIVATE_MESSAGE_POSTS table and start from scratch. What's the fastest way to do this. I presume a SQL command of delete from, but getting an error.

Joined: Dec 2003
Posts: 1,798
Likes: 2
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,798
Likes: 2
I believe there's a mod at ubbdev for this, as there's 3 tables involved - pm posts, pm topics, and pm users


- Allen
- ThreadsDev | PraiseCafe
Joined: Nov 2007
Posts: 99
T
journeyman
journeyman
T Offline
Joined: Nov 2007
Posts: 99
Thank you. I'll check it out.

Joined: Nov 2007
Posts: 99
T
journeyman
journeyman
T Offline
Joined: Nov 2007
Posts: 99
Ooops. messed up. I deleted the posts table (ubbt_PRIVATE_MESSAGE_POSTS). Dumb move, really. However, I'm fairly proficient in SQL and can do the insert to add the table. Can someone just post to me the column names and field size, etc.? I think that a quick DESC command would give that info, no? But I can't run a describe on that table because it is gone. Ooops again.

Last edited by toonarrow; 01/03/2008 3:18 PM.
Joined: Dec 2003
Posts: 1,798
Likes: 2
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,798
Likes: 2
I'd grab the create table script in your zip and the portion thereof for the table you deleted - it may be different based on the version you have installed.


- Allen
- ThreadsDev | PraiseCafe
Joined: Nov 2007
Posts: 99
T
journeyman
journeyman
T Offline
Joined: Nov 2007
Posts: 99
Good point. Let me see if I can locate that.

Joined: Nov 2007
Posts: 99
T
journeyman
journeyman
T Offline
Joined: Nov 2007
Posts: 99
I couldn't find it, but was able to get a desc and rebuilt table successfully. Back in business.

PS - If I've never created any backup directories does that mean that there is currently no backup of my DB?

Joined: Jun 2006
Posts: 3,839
Likes: 1
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,839
Likes: 1
Probably wink

Always best to backup your database from an SSH login - far better than any script or phpmyadmin, which is likely to time out.

Joined: Jun 2006
Posts: 3,839
Likes: 1
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,839
Likes: 1
https://www.ubbcentral.com/forums/ubbthreads.php/ubb/showflat/Number/191156#Post191156 - this thread should assist you in backing up your database.

Ian #204346 01/04/2008 12:30 PM
Joined: Nov 2007
Posts: 99
T
journeyman
journeyman
T Offline
Joined: Nov 2007
Posts: 99
Thanks a lot Ian. smile


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Who's Online Now
0 members (), 298 guests, and 124 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)