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 10-08-2010, 09:35 PM
zackw zackw is offline
 
Join Date: Aug 2010
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Change settings directly in database don't work???

Hi, I have an install of VB (4.0.7) that I am moving from one server to another. The versions of VB match but MySQL is different version.

Never mind that though! The real problem is that when I move the database, the site won't work because the URLs don't match the different server.

Say for example the working forum has bburl set to www.mydomain.com but when I copy the database to my local computer, it's going to be localhost/vb. This means that the data will copy (and it does), but no links work, can't log in, can't click anything, because all the links go to the original www.mydomain.com instead of localhost/vb.

I thought I would be clever and just edit the values directly in the database. I found the bburl setting, put in localhost/vb and tried again, no luck. Cleared browser cache, restarted server services, nope. It continues to use the old values.

I also changed bburl_basepath and it's still no good, links remain the same. I changed "homeurl" value and no good still.

I cannot change this value so that it will work! One thing I could do is change this value through the VB admin panel on the main server, THEN copy the DB. But of course if I put localhost/vb in the main server, then IT will stop working!

What am I missing here? I update the values in the DB but it just seems to ignore the changes? I update the values from the control panel itself, and the site dies. I actually locked myself out of the admin panel because once I changed bburl or basepath, the links to get in the admin panel no longer work, can't login, etc...

So guys, how do I change the URL structure in the database directly, or in other ways transfer the database so that this linking issue doesn't happen?

Thanks a ton!
Reply With Quote
  #2  
Old 10-08-2010, 10:50 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is your config.php file set to use the datastore_cache? And did you transfer over that file also? And, did you change the url in the datastore table also (that ones a bit trickier)?
Reply With Quote
  #3  
Old 10-12-2010, 04:11 PM
zackw zackw is offline
 
Join Date: Aug 2010
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found the main limiting factor was the <base> tag in the HTML would remain pointed to the old URL even after I changed the database. And the variable used in code to make the <base> tag IS bburl. So there must be a cache somewhere.

I did not transfer any "files", this is only the database.
If there are cache tables that I can safely empty after transferring the database I'd like to know what. Given that it is a new forum install on a new server, some cache dumps would probably be good.

That leads me to another question, after transferring a database in this manner, what type of maintenance chores should I run on the database to make sure we have a good start before letting the 20K users back on 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 02:51 AM.


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.03129 seconds
  • Memory Usage 2,176KB
  • 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
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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