Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Big Board Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Best way to restore a 300 mb database without ssh access Details »»
Best way to restore a 300 mb database without ssh access
Version: , by hypnoticpimp hypnoticpimp is offline
Developer Last Online: Apr 2007 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-04-2006 Last Update: Never Installs: 0
 
No support by the author.

My host doesnt allow ssh access . so we cant enter commands, to restore and uplaod the 300 mb database? are they any other option

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-04-2006, 11:29 PM
Guest210212002
Guest
 
Posts: n/a
Default

Your best bet is to upload your backup, call them up and have them do it. If they say they can't, tell them that you need SSH access because doing it via phpMySQLAdmin will undoubtedly time out.

If neither works, you need a new host.
Reply With Quote
  #3  
Old 05-04-2006, 11:59 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use a third party program like phpmyadmin as suggested, or get a new host. SSH access is quite important for most things.
Reply With Quote
  #4  
Old 05-05-2006, 12:49 AM
Ramsesx's Avatar
Ramsesx Ramsesx is offline
 
Join Date: Aug 2005
Location: Southern Germany
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can recommend you Mysqldumper
Reply With Quote
  #5  
Old 05-05-2006, 02:56 AM
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
Location: Switzerland
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ramsesx
I can recommend you Mysqldumper
I using this longtime, very good.
Reply With Quote
  #6  
Old 05-05-2006, 03:34 AM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my db is around 65/mb and I searched high and low for the utility you're looking for. Just modify this file as needed and run from cgi-bin.

good luck.

Quote:
#!/bin/sh
#
# Edit this file and put correct string for following items
# MYSQLUSERNAME1&2 MYSQLPASSWORD1&2 mysqlXX1&2 DATABASE_NAME1&2
#
# Don't forget to set permission of 700 (not 755) to this script.
# You can do that with WebFTP, SiteTools, most FTP software, other utilities.
#

echo # Send text/plain Content-type header.
exec 2>&1 # Senf error output (stderr) to the browser

filename=${HOME:-${DOCUMENT_ROOT%/*}/cgi-bin/filename.sql} # ex.: dbbackup_2006-03-07.sql
#echo "Moving MySQL db"
# Dump DB
#/usr/local/bin/mysqldump --opt --no-create-db --user=xxx --password=xxx --host=xxx vbulletin > $filename

#echo "Data saved in $filename.
#Now importing to the destination DB"

# Restore (import)
/usr/local/bin/mysql --user=xxx --password=xxx --host=xxx xxx < $filename

echo 'Done'
Call the file whatever you want with a .cgi extension.
Reply With Quote
  #7  
Old 05-09-2006, 08:00 PM
yj_enquirer yj_enquirer is offline
 
Join Date: Jan 2005
Location: UK
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@morrow thanks for that info.. question is.. how would I run that .cgi file?
Reply With Quote
  #8  
Old 05-09-2006, 09:09 PM
Danecookie Danecookie is offline
 
Join Date: Oct 2005
Location: France
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how many members/threads/posts/etc comes in your 300mb database?
Reply With Quote
  #9  
Old 05-13-2006, 08:03 PM
Konstantinos Konstantinos is offline
 
Join Date: Apr 2006
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try this http://www.ozerov.de/bigdump.php it always works
Reply With Quote
  #10  
Old 05-26-2006, 10:58 PM
vantage255's Avatar
vantage255 vantage255 is offline
 
Join Date: Apr 2006
Location: St Petersburg Florida
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right now I am doing backups by mounting a second drive array. Then I sync the 2. I unmount the drive array and if the primary ever dies, or I want to roll back, I just switch arrays.
Does your host allow you access to the raw table files..? I generaly have better luck simply backing those up and restoring them than using sql dumps.
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 07:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09500 seconds
  • Memory Usage 2,283KB
  • Queries Executed 23 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)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_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