vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Moving some Database info from one database to another. (https://vborg.vbsupport.ru/showthread.php?t=96264)

Red Blaze 09-14-2005 04:09 PM

Moving some Database info from one database to another.
 
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.

Quote:

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.

The 3.5 board is /forums.

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


All times are GMT. The time now is 07:01 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01020 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete