Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-14-2007, 12:41 AM
zan3y zan3y is offline
 
Join Date: Jun 2006
Location: Alabama
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database Restore

My question has to do with database restore. I've recently upgraded my vBulletin to the newest 3.6.8 version from 3.6.4. Instead of doing an upgrade, I wanted to do a fresh re-install of vBulletin as well as vBAdvanced on a new database that would be filled by my backup. I backed-up my database using the admin panel from vBulletin, which I have done several times before. The main problem is that my SQL file is too large for phpMyAdmin and I don't have shell access to my server so that too is out of the question. I was wondering if there was a way in which to manually put the data from my old database into my new one using phpMyAdmin. I've noticed that there are several functions in which to "copy", "move" and "import/export" tables into databases but every time I try to do it, I get an error through myPhpAdmin either saying that the "Column count doesn't match value count at row 1." Or that the table cannot be created because it already has been. Thanks for the help in advanced!

Here is the actual error I get when trying to "move" the table 'user' to my new database.

Code:
Error

SQL query: Edit

CREATE TABLE `shores_sog`.`user` (
`userid` int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
`usergroupid` smallint( 5 ) unsigned NOT NULL default '0',
`membergroupids` varchar( 250 ) NOT NULL default '',
`displaygroupid` smallint( 5 ) unsigned NOT NULL default '0',
`username` varchar( 100 ) NOT NULL default '',
`password` varchar( 32 ) NOT NULL default '',
`passworddate` date NOT NULL default '0000-00-00',
`email` varchar( 100 ) NOT NULL default '',
`styleid` smallint( 5 ) unsigned NOT NULL default '0',
`parentemail` varchar( 50 ) NOT NULL default '',
`homepage` varchar( 100 ) NOT NULL default '',
`icq` varchar( 20 ) NOT NULL default '',
`aim` varchar( 20 ) NOT NULL default '',
`yahoo` varchar( 32 ) NOT NULL default '',
`msn` varchar( 100 ) NOT NULL default '',
`skype` varchar( 32 ) NOT NULL default '',
`showvbcode` smallint( 5 ) unsigned NOT NULL default '0',
`showbirthday` smallint( 5 ) unsigned NOT NULL default '2',
`usertitle` varchar( 250 ) NOT NULL default '',
`customtitle` smallint( 6 ) NOT NULL default '0',
`joindate` int( 10 ) unsigned NOT NULL default '0',
`daysprune` smallint( 6 ) NOT NULL default '0',
`lastvisit` int( 10 ) unsigned NOT NULL default '0',
`lastactivity` int( 10 ) unsigned NOT NULL default '0',
`lastpost` int( 10 ) unsigned NOT NULL default '0',
`posts` int( 10 ) unsigned NOT NULL default '0',
`reputation` int( 11 ) NOT NULL default '10',
`reputationlevelid` int( 10 ) unsigned NOT NULL default '1',
`timezoneoffset` varchar( 4 ) NOT NULL default '',
`pmpopup` smallint( 6 ) NOT NULL default '0',
`avatarid` smallint( 6 ) NOT NULL default '0',
`avatarrevision` int( 10 ) unsigned NOT NULL default '0',
`profilepicrevision` int( 10 ) unsigned NOT NULL default '0',
`options` int( 10 ) unsigned NOT NULL default '15',
`birthday` varchar( 10 ) NOT NULL default '',
`birthday_search` date NOT NULL default '0000-00-00',
`maxposts` smallint( 6 ) NOT NULL default '-1',
`startofweek` smallint( 6 ) NOT NULL default '1',
`ipaddress` varchar( 15 ) NOT NULL default '',
`referrerid` int( 10 ) unsigned NOT NULL default '0',
`languageid` smallint( 5 ) unsigned NOT NULL default '0',
`emailstamp` int( 10 ) unsigned NOT NULL default '0',
`threadedmode` smallint( 5 ) unsigned NOT NULL default '0',
`autosubscribe` smallint( 6 ) NOT NULL default '-1',
`pmtotal` smallint( 5 ) unsigned NOT NULL default '0',
`pmunread` smallint( 5 ) unsigned NOT NULL default '0',
`salt` char( 3 ) NOT NULL default '',
`adminoptions` int( 10 ) unsigned NOT NULL default '0',
`lastpostid` int( 10 ) unsigned NOT NULL default '0',
`sigpicrevision` int( 10 ) unsigned NOT NULL default '0',
`ipoints` int( 10 ) unsigned NOT NULL default '0',
`infractions` int( 10 ) unsigned NOT NULL default '0',
`warnings` int( 10 ) unsigned NOT NULL default '0',
`infractiongroupids` varchar( 255 ) NOT NULL default '',
`infractiongroupid` smallint( 5 ) unsigned NOT NULL default '0',
`arcadeoptions` int( 10 ) unsigned NOT NULL default '0',
`challengecache` int( 10 ) unsigned NOT NULL default '0',
`favcache` text NOT NULL ,
PRIMARY KEY ( `userid` ) ,
KEY `usergroupid` ( `usergroupid` ) ,
KEY `username` ( `username` ) ,
KEY `birthday` ( `birthday` , `showbirthday` ) ,
KEY `birthday_search` ( `birthday_search` ) ,
KEY `posts` ( `posts` )
) TYPE = MYISAM

MySQL said: Documentation
#1050 - Table 'user' already exists
Here is the error I get which trying to "copy" the 'user' table into my new database. I also only checked the box that says "Data only."

Code:
Error

SQL query: DocumentationEdit

INSERT INTO `shores_sog`.`user`
SELECT *
FROM `shores_msgboard`.`user`

MySQL said: Documentation
#1136 - Column count doesn't match value count at row 1
I apologize if I've posted this issue in the wrong forum.

UPDATE:
I've figured out how to get the tables in manually. I am having to delete each table in my new database install and replacing it with my old database. If I keep doing this hopefully everything will be restored. It is just going to be a pain to manually do each table. Oh well, at least I got it working.

UPDATE:
I've made some progress on importing everything by hand but I was wondering if there was a list of table structure for which the tables use each other. This will greatly help me in moving all the tables with their data to my new database. Thanks again in advanced!
Reply With Quote
  #2  
Old 09-14-2007, 10:44 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Many people have reported success (even with large databases) with MySQLDumper. It can be found here.
Reply With Quote
  #3  
Old 09-14-2007, 01:18 PM
zan3y zan3y is offline
 
Join Date: Jun 2006
Location: Alabama
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
Many people have reported success (even with large databases) with MySQLDumper. It can be found here.
Thanks! I've checked this out but my main problem is that I don't want to take all the data from my old database because I've changed the file structure and if I do import specific tables it will mess up my vBadvanced install. I just want to be able to pull the tables from my old database that use all the thread, users, statistics, and anything else that just dealt with my actual forums.
Reply With Quote
  #4  
Old 09-15-2007, 05:09 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In that case, using ImpEx may be a good idea.
Reply With Quote
  #5  
Old 09-19-2007, 01:25 AM
zan3y zan3y is offline
 
Join Date: Jun 2006
Location: Alabama
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've used ImpEx and it seems to work pretty good. However, there is one problem. When I imported my user names they imported fine but now each user name says, "import_username." Is there anyway to fix this? I've tried to go to "Maintenance" and fix/rebuild the user options but to no avail. Thanks!

UPDATE:
It seems that I got most of my users to work fine, however, 2 of my users say, "imported_username." Does anyone know how to fix this issue or at least point me in the right direction. It only seems to be doing this for administrator users. I noticed that it said that the administrator users can't be fixed at this stage. Does this mean that there is a fix for this issue? Or that ImpEx hasn't been able to implement this yet? Thanks!

UPDATE:
After messing with ImpEx for a little while I was finally able to get almost all of my data restored. I got all my user names + changed over the "imported_username" for my administrators. I am still having trouble getting the "Top Poster" stat to work correctly. For some reason all the other stats are working, such as follows:

Members: 647
Threads: 303
Posts: 2,781
Top Poster: (0)

For some reason the "Top Poster" stat doesn't seem to be picking up. I've tried rebuilding the statistics but it didn't work.
Reply With Quote
  #6  
Old 09-19-2007, 04:58 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Which modification is that? You should contact it's author.
Reply With Quote
  #7  
Old 09-19-2007, 07:27 PM
zan3y zan3y is offline
 
Join Date: Jun 2006
Location: Alabama
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not a modification, it's the default stats for vBulletin. I've got it to work now. It apparently caches every 24 hours. I just bumped that time down to 12 hours and it worked. My only problem now is with smilies. When I tried to import my tables using ImpEx it imported the "code" to use the smilies but not the actual images. I was wondering if there was a way to get around this. I like how these smilies are below the post instead of to the side. Is this one just a mod? Thanks!
Reply With Quote
  #8  
Old 09-20-2007, 06:20 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just move your smilies over into the new folder.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:36 PM.


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.04049 seconds
  • Memory Usage 2,237KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete