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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2003, 05:13 PM
ajk ajk is offline
 
Join Date: Feb 2003
Location: Monmouth County, N.J. U.S.A.
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default backup file not importing

When I recently changed hosts, I started having MySQL problems.

The file I backed up from the old BBS version 2.3.2 was 147MB size file.
This file is called vbulletin.11.15.sql. When I logged in as root, I post these commands:

mysql -u username -p vbulletin < public_html/forums/backup/vbulletin.11.15.sql
Password: (I then enter the correct password.)

Then it goes back to the command prompt. It doesn't import the data base back in.

When I used the import command from the phpMyAdmin query window from a different attempt, it fails too.
In Internet Explorer 5.0 I get the error page can not be displayed.

I'm also wondering if there is a hack to install into the 2.3.3 control panel to import .sql backups.

Thanks to ANYONE for ANY help.
Reply With Quote
  #2  
Old 11-18-2003, 05:32 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm surprised using telnet didn't work. Also, phpMyAdmin woulnd't of worked since you're importing such a large DB, it will timeour.

Check out a hack called Main Control Panel by N9ne. It allows you to upload a .SQL file and such.
Reply With Quote
  #3  
Old 11-18-2003, 05:43 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you tried to put a / before 'public_html' so it will look like:

mysql -u username -p vbulletin < /public_html/forums/backup/vbulletin.11.15.sql

?
Reply With Quote
  #4  
Old 11-18-2003, 05:55 PM
ajk ajk is offline
 
Join Date: Feb 2003
Location: Monmouth County, N.J. U.S.A.
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lesane, on my server, it won't let me try it that way.
Since I don't have root access, only user, I can't put the / in front of it.
Reply With Quote
  #5  
Old 11-18-2003, 05:58 PM
ajk ajk is offline
 
Join Date: Feb 2003
Location: Monmouth County, N.J. U.S.A.
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the quick reply assassingod.

I don't know how to do a main MySQL back up file then append it.
Never had to worry about that on my own server. I had 40 gigs
just for that BBS.

Now that I'm on another machine, I'll have to do backups in bits and pieces.

Why do you think the command line won't take it?
Is it the size of the file? 147MB?

Thanks for any help.
Reply With Quote
  #6  
Old 11-18-2003, 07:44 PM
ajk ajk is offline
 
Join Date: Feb 2003
Location: Monmouth County, N.J. U.S.A.
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

These are the exact error messages I get as in SSH from the copy and paste method:

bash-2.05a$ mysql -u ds1 -p ds1_vbulletin < public_html/forums/admin/backup/vbulletin.11.15.sql
Enter password:
bash-2.05a$ mysql -u ds1 -p ds1_vbulletin < public_html/forums/admin/backup/vbulletin.11.15.sql

Enter password:
bash-2.05a$ mysql -u ds1 -p vbulletin < /public_html/forums/admin/backup/vbulletin.11.15.sql
bash: /public_html/forums/admin/backup/vbulletin.11.15.sql: No such file or directory
bash-2.05a$ mysql -u ds1 -p ds1_vbulletin < public_html/forums/admin/backup/vbulletin.11.15.sql
Enter password:
bash-2.05a$
Reply With Quote
  #7  
Old 11-18-2003, 07:44 PM
ajk ajk is offline
 
Join Date: Feb 2003
Location: Monmouth County, N.J. U.S.A.
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can see that it won't recognize the directory at all if I use the forward slash.

Thanks
Reply With Quote
  #8  
Old 11-19-2003, 08:22 PM
ajk ajk is offline
 
Join Date: Feb 2003
Location: Monmouth County, N.J. U.S.A.
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to help other that may have this same problem, I discovered the error.

What I had to do was drop all the tables from the new 2.3.3 installation.
Once I did that and reran MySQL from the command line. The backup worked.

Now everyone is happily reading and posting their messages again.
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 09:14 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.03883 seconds
  • Memory Usage 2,222KB
  • 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
  • (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