PDA

View Full Version : Moving some Database info from one database to another.


Red Blaze
09-14-2005, 04:09 PM
Alright, here's my issue.

I have two databases. A clean VB3.5 database, and a craptastic, filled-with-useless-tables vb3 database. I just want some tables moved. Not all of them. I tried doing it myself via myPHPAdmin, but no such luck.

I just want the Forums, threads, posts, users, and private messages.

Here's my VB3.5 forum:
http://www.chaossanctum.com/forums/
log in as test, password is testing.

Click on a forum/thread, and you get the database error.


Database error in vBulletin 3.5.0 Release Candidate 2:

Invalid SQL:

SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
lastpost, lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason

FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1)

LEFT JOIN post AS post ON(post.postid = thread.firstpostid)


WHERE thread.threadid IN (0,435,432)
ORDER BY sticky DESC, lastpost DESC;

MySQL Error : Got error 127 from table handler
Error Number : 1030
Date : Wednesday, September 14th 2005 @ 05:03:35 PM
Script : http://www.chaossanctum.com/forums/forumdisplay.php?f=5
Referrer : http://www.chaossanctum.com/forums/index.php
IP Address : 208.209.112.243
Username : Red Blaze
Classname : vb_database


I added the users information first, then the forums, then the threads and posts. Help would be well appreciated, thank you.

Marco van Herwaarden
09-14-2005, 07:05 PM
It is not easy to move just a few tables by hand. That is a real expert job.

You better wait for ImpEx to be available on 3.5 if your intention is to start over with a clean non-hacked database (or you should have done that on a 3.0 database before upgrade to 3.5)

Red Blaze
09-16-2005, 04:29 PM
No no, I didn't upgrade anything. The current board I'm still using is /home/forum (http://www.chaossanctum.com/home/forum).

The 3.5 board is /forums (http://www.chaossanctum.com/forums).

I hope that hack yo mentioned won't take too long to be released. Thanks.