vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Moving servers, yes, but what about... (https://vborg.vbsupport.ru/showthread.php?t=48043)

Areku 01-23-2003 05:13 PM

Moving servers, yes, but what about...
 
...the contents of the messages itself?

I'm following vb's.com guide to move DB from server1 to server2, but WHAT happens with all the URLs used throrough the site and inside the posts itself pointing to server1? Is there any search'n'replace thing for mysql or something like this?!?

Thanks!

Rose 01-23-2003 05:19 PM

What do you mean? URL's embedded inside the templates? You can do a search of the templates and replace the old url with a new one, if that's what you are referring to (for those 'hard-coded' in links).

Inside the posts - I believe they all stay the same unless you go in and manually edit them before transport. One suggestion (and this might be tedius and not worth it, but it's a shot) is to open your .sql file of the database into an editor ((such as EditPlus 2.0)) and use their search and replace feature to try that before you upload the actual database contents.

Good luck with it, though.

Areku 01-23-2003 05:26 PM

I thought there would be a mysql function to do the search'n'replace....

Since I'm referring to URLs containing an old path (domain1.com/mysite/forums/blablabla.php to domain2.com/forums/blablabla.php), I guess there must be an easy cure for this! :(

Pleez?

filburt1 01-23-2003 05:37 PM

Do so at your own risk:
[sql]
UPDATE post SET pagetext = REPLACE(pagetext, 'http://olddomain', 'http://newdomain');
[/sql]
Be sure to include the http://.

Areku 01-23-2003 05:41 PM

Is it SO risky? ;) Seems more reliable than other methods ;)

Areku 01-23-2003 05:45 PM

Meanwhile, on STEP 3 of VB's.com mOVING SERVERS MANUAL, I'm now trying to import the dump onto the new server but I get this:

ERROR 2006 at line 157: MySQL server has gone away

What am I doing wrong?!?!

Neo 01-23-2003 05:51 PM

Quote:

Originally posted by filburt1
Do so at your own risk:
[sql]
UPDATE post SET pagetext = REPLACE(pagetext, 'http://olddomain', 'http://newdomain');
[/sql]
Be sure to include the http://.

BAHHH figures (:

filburt1 01-23-2003 09:35 PM

Re: I say so at your own risk because it's an UPDATE query and that modifies your data, unlike harmless SELECT.

Areku 01-24-2003 08:05 AM

HoweverI'm still stucked on IMPORTING the dump I made...

I get the error mentioned above.

I followed every instruction on Vb.com moving servers guide, BUT I could not use the --opt parameter, instead I used the ones opt mean sepparately EXCEPT FOR lock-tables.

Now each time i try to recreate the database,

ERROR 2006 at line 157: MySQL server has gone away

appears.

Advice pleasE!!

filburt1 01-24-2003 02:08 PM

I think it's your host's fault for misconfiguring something in my.cnf, try asking them.


All times are GMT. The time now is 08:06 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.01030 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete