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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-14-2013, 12:20 PM
Nelson58 Nelson58 is offline
 
Join Date: Oct 2011
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default SQL Database Issues

This issue comes up again and again.

I don't know how to program SQL databases, but there are times I need to replace values in the current database with those in a backup. For example, a mod recently went bad, I re-installed it, and lost all the values. But I have a backup.

Can one of you SQL experts please tell me how to replace the values in the current database with those from a backup in phpAdmin so that I can restore my information?

Note: phpAdmin will NOT upload a table over 50M, so if I export a table larger than that from a backup, I will not be able to import it in phpAdmin. I already tried that!

I REALLY need to know how to do this!

Thanks very much!

Nelson
Reply With Quote
  #2  
Old 03-14-2013, 01:05 PM
findingpeace's Avatar
findingpeace findingpeace is offline
 
Join Date: Nov 2011
Posts: 268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Nelson, if you have PHPMyAdmin, I'm assuming you also have some sort of cPanel software? If so, I've found those to be the easiest way to restore databases.
Reply With Quote
  #3  
Old 03-14-2013, 01:23 PM
Nelson58 Nelson58 is offline
 
Join Date: Oct 2011
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't want to restore the whole database. I know how to do that. I want to put certain tables from a backup database into the current database. The tables are over 50m so the import function in phpAdmin doesn't work.
Reply With Quote
  #4  
Old 03-14-2013, 01:37 PM
findingpeace's Avatar
findingpeace findingpeace is offline
 
Join Date: Nov 2011
Posts: 268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Contact your hosting provider and ask them to increase the following variables in php.ini, as required:

Quote:
upload_max_filesize
memory_limit
post_max_size
If you do your own hosting, you'll need to restart the server for the changes to take effect.
Reply With Quote
  #5  
Old 03-14-2013, 02:41 PM
betterthanyours betterthanyours is offline
 
Join Date: May 2012
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, if you are on shared hosting, the best option would be to provide your host with the backup and specify which tables to restore considering the threshold of uploading tables are set to relatively low.

Otherwise if you are hosting dedicated or VPS then do as specified above which should enable you to complete the job.
Reply With Quote
Благодарность от:
findingpeace
  #6  
Old 03-14-2013, 03:00 PM
Nelson58 Nelson58 is offline
 
Join Date: Oct 2011
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We're on VPN but they won't go above 64m. I will have to ask the provider to restore the tables from the backup into the current database.

--------------- Added [DATE]1363347249[/DATE] at [TIME]1363347249[/TIME] ---------------

I gave the host the tables to restore in the backup database, and they did it for me. It worked very nicely (thank goodness I backed up!).

They said they did a "table dump" first then zeroed the tables to be replaced then copied the others.

Anyone know how to do that, and if so, could you explain it to me?

Thanks.


Nelson
Reply With Quote
  #7  
Old 03-27-2013, 11:57 PM
Nelson58 Nelson58 is offline
 
Join Date: Oct 2011
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Received in PM:

"Hi Nelson,

Is this a paid request?

We provide a monthly maintenance service, that's why I want to know.

Regards,
Claudio "

No Claudio, it isn't a paid request, and it wasn't posted in the paid request area. Please do not send me a PM for your paid services. I don't think solicitations are allowed.
-----------------------------------------------------------------------------------------------------

Back to what I need:

Here is an example:

Someone's important thread gets ruined somehow- part of it is lost. If I go back to a backup of the SQL database that I made a month ago, it is intact.

The question is, how would I go about MERGING the old thread that is intact with the current database where it is not- if this is possible?

Thanks.

Nelson
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 11:38 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.08198 seconds
  • Memory Usage 2,217KB
  • Queries Executed 11 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (1)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete