vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Moving forum and mysql to another provider (https://vborg.vbsupport.ru/showthread.php?t=157317)

m3power 09-08-2007 11:49 AM

Moving forum and mysql to another provider
 
I am having some difficulties moving my sql from one provider to another. My current database is mysql 4.1 and the new provider is mysql 5. The database just wont import.

I have used mysqldumper to backup the database but when using mysqldumper to restore the database it crashes on the main postindex (table 80) everytime but at different points.

Unfortunately mysqldumper doesn't give any error messages it just seem to timeout.

I'm lost as to what to do next and I'm looking for any good suggestions as to how to solve the problem.

Thanks

Marco van Herwaarden 09-08-2007 12:00 PM

The only reliable method of backing up and restoring a database is with shell access via telnet or ssh. This is because backing up with a PHP script like that in the Admin CP or phpMyAdmin can result in PHP timeouts errors and an incomplete backup file. Please see the instructions here:

Backup:
http://www.vbulletin.com/docs/html/m...nce_ssh_backup

Restore:
http://www.vbulletin.com/docs/html/m...ce_ssh_restore

P.S. If you don't have shell access, some people have also reported success with these scripts:

MySQLDumper:
http://www.mysqldumper.de/en/index.php

MySQLHotxcopy:
http://www.vbulletin.com/forum/showt...t=mysqlhotcopy

Bigdump:
http://www.ozerov.de/bigdump.php

m3power 09-08-2007 12:04 PM

I have ssh access with the new provider but don't have access with the existing hostin. I used mysqldumper but that doesn't work on the restore. Perhaps I will try one of the others now.
Thanks Marco

Ok So I tried big dump and got the following error:

BigDump: Staggered MySQL Dump Importer v0.28b
Processing file: astrasriforums.sql

Starting from line: 51001

Error at the line 52156: ) ENGINE=MyISAM ;

Query: CREATE TABLE `attachment` (
`attachmentid` int(10) unsigned NOT NULL auto_increment,
`userid` int(10) unsigned NOT NULL default '0',
`dateline` int(10) unsigned NOT NULL default '0',
`filename` varchar(100) NOT NULL default '',
`filedata` mediumblob,
`visible` smallint(5) unsigned NOT NULL default '0',
`counter` int(10) unsigned NOT NULL default '0',
`postid` int(10) unsigned NOT NULL default '0',
`filesize` int(10) unsigned NOT NULL default '0',
`thumbnail` mediumblob,
`filehash` varchar(32) NOT NULL default '',
`posthash` varchar(32) NOT NULL default '',
`thumbnail_dateline` int(10) unsigned NOT NULL default '0',
`thumbnail_filesize` int(10) unsigned NOT NULL default '0',
`extension` varchar(20) character set latin1 collate latin1_bin NOT NULL default '',
PRIMARY KEY (`attachmentid`),
KEY `posthash` (`posthash`,`userid`),
KEY `postid` (`postid`),
KEY `filesize` (`filesize`),
KEY `filehash` (`filehash`),
KEY `userid` (`userid`),
KEY `visible` (`visible`)
) ENGINE=MyISAM ;

MySQL: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'collate latin1_bin NOT NULL default '', PRIMARY KEY (`attach

Stopped on error


it's basically the same error that happens when you you use mysql when using ssh! Ideas please?

Marco van Herwaarden 09-08-2007 01:31 PM

Are you sure that the new server is running MySQL 5?

m3power 09-08-2007 01:35 PM

It's mysql 4.0. Just looked at it now! The original one is mysql 4, cant find out if it's mysql 4.0 or 4.1 though.

Marco van Herwaarden 09-08-2007 01:43 PM

Then that explains all your problems. Characterset and collation support was added in MySQL 4.1.

If possible you should really ask your host to upgrade MySQL, as 4.0 is really outdated.

If that is absolutly not possible we can give some instruction to overcome this problem.

m3power 09-08-2007 02:33 PM

Ok, they are offering me an upgrade to version 5. This shouldn't be a problem to move the current forum across to it???

I have already moved a forum across though. Will this affect my current live forum on the hosting if they upgrade from v4 to v5?

Paul M 09-08-2007 03:27 PM

It shouldn't, but then you always have backups (don't you ...... )

m3power 09-08-2007 08:25 PM

Ok......My hosting provider has said that they cannot upgrade our dedicated server to MySql 5 as they would have to upgrde all others (sounds like a cop out to me). Since signing up with 1and1 I am most dissapointed with their services to be honest!

So it looks like I am in the hands of you guys to give me some help if possible :)

Paul M 09-08-2007 09:40 PM

Quote:

Originally Posted by m3power (Post 1335006)
Ok......My hosting provider has said that they cannot upgrade our dedicated server to MySql 5 as they would have to upgrde all others (sounds like a cop out to me).

It's not a cop out, mysql is a server application, so it would affect everyone on the server your account is on.


All times are GMT. The time now is 11:27 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.01069 seconds
  • Memory Usage 1,739KB
  • 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