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.

Areku 01-27-2003 09:43 AM

Can't I just copy the whole mysql/var directory containing all of the DBs I want to the new server via FXP???

What's the problem with that?!?

Please advice asap!

Thanks.

Icheb 01-28-2003 06:07 AM

Those files never contain the entire database. MySQL caches a lot, that's why the only complete way of backing up your forum is via MySQL's own functions like mysqldump or through phpMyAdmin and alike.

Areku 01-28-2003 09:42 AM

But i can see all of the info! Database is current, i can see the latest user on both servers, the latest post on both, etc...

How can I use phpmyadmin to achieve the dump? I couldn't recover the dump from the command line at all...

Icheb 01-28-2003 11:53 AM

If you are sure that every info is in the new DB, just upload the files to the server, edit config.php according to the new host and try to run vB.

filburt1 01-28-2003 01:02 PM

FWIW you must use SSH/Telnet to restore a dump. Any PHP-based method including PMA and the admin CP are horrendeously unreliable.

Areku 01-28-2003 01:36 PM

I tried Telnet.

I do get ERROR 2006 at line 157: MySQL server has gone away
when I try to restore the dump.

I'm unable to use the --opt parameter due to another error. Can I just back it up without --opt?

After copying using the mysql/var transfer from one server to another, i get these other errors:

https://vborg.vbsupport.ru/showthrea...threadid=48229

iggy123 05-29-2003 12:48 PM

Quote:

you must use SSH/Telnet to restore a dump. Any PHP-based method including PMA and the admin CP are horrendeously unreliable.
My old host allowed SHH which meant i could get a dump of the db - but my new host doesn't allow it -- is there any other way of doing this?


All times are GMT. The time now is 02:07 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.02107 seconds
  • Memory Usage 1,742KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete