MyBB Community Forums
import a thread into the database - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: import a thread into the database (/thread-192553.html)



import a thread into the database - andrewjs18 - 05-03-2016

a mod on my forum accidentally deleted an entire thread rather than his own post in the thread.  I have backups of the database where the thread still exists.  how can I import just 1 specific thread and its posts into the database?

any help is much appreciated!

ok, I'm able to export & import the specific thread via phpmyadmin, but once that's done, mybb throws the following error when I try to view the thread: "The specified thread does not exist. "

that's after running all of the recount & rebuild tools. am I doing something wrong?

edited to add: I think in addition to exporting the data from the threads table, I also need to export the corresponding posts from the posts table as well. I'll test this in a bit and report back.


RE: import a thread into the database - .m. - 05-04-2016

^ yes, threads table basically consists of information about first post of the thread
and posts table actually consists of all the posts contents


RE: import a thread into the database - andrewjs18 - 05-04-2016

(05-04-2016, 01:59 AM).m. Wrote: ^ yes, threads table basically consists of information about first post of the thread
and posts table actually consists of all the posts contents

thanks, that was the key.