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,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
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,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
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,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
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,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
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
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (1 invisible), 702 guests, and 193 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)