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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


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:32 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.03704 seconds
  • Memory Usage 2,465KB
  • Queries Executed 12 (?)
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
  • (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)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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