Quick Login   
 
Register AdminFusion Tutorials Post Fusion Forum Matrix
 
Go Back AdminFusion » Software & Tech » Domains, Hosting and Servers » Need help in moving large database to new server
 
 
LinkBack
Old 01-15-2008, 02:42 PM   #1
Rookie
 
jayunsplanet's Avatar
 
Join Date: Sep 2006
Location: MD
Posts: 26
jayunsplanet is an unknown quantity at this point
Need help in moving large database to new server

A little background:
I run a forum for automobile enthusistast in Maryland.
MDStreetScene.com | Welcome!
MDStreetScene.com Forums - Powered by vBulletin
~2,000 users. 400 active. Maximum of 25 users online at any given time.
Shared Premium Hosting account w/ PHP/Perl w/ GoDaddy (yea yea, there's your problem, blah blah, I know)

Starting December 27, 2007, the forums, at various times, have been extremely slow. On that day the server load average hit 34.79 24.60 20.74 with 8 Users Online. I realize that those averages show the entire server, not just my site. Since that day, the load averages have hit 12.xx at various times. It will take 10-12 seconds (or sometimes longer) for the AdminCP to load or to do a "New Posts" search. About the same time to read a thread. Then again, sometimes the forum will be perfectly fine. However, even when the forums slow to a crawl, the averages may only be 2.x I have contacted GoDaddy and they say "everything" is as normal. I contacted them the other night, and they asked me to do a Trace Route to my site and send the results to them. I did it just to appease them. Well, the traceroute is going to mdstreetscene.com (the html site). The database is on http://mysql47.secureserver.net/ So I don't quite know how that is going to help them diagnose the problem. They probably just want to say that it's on my end with too many hops or something.

Anyway, I want to stop using GoDaddy for the database/forum part. They are alright for file hosting (I have 200GB of storage w/ 2TB of bandwidth. And my download speeds are ~750kb/s)

I have acquired a Virtual Server with Windows Administrator access. (I can install whatever program I want/need) I am running Apache w/ MySQL, PHP, etc. I want to upload/put my 400mb database on this server. I don't quite know how to do it. What file type should I be uploading and where? Using what program? I assume I would have to copy the actual vBulletin forum files to the new server too? That's fine, it'll take awhile, but it's doable.

Is there a way I can use a brand new vBulletin forum installation (which I currently have on this virtual server), and just add my database info such as users, posts, threads, and PM's? This way I kind of have a fresh start and I can build it up.

I know this may be a lot to ask, but thanks for any help you can give.
__________________
-Jason

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Maryland Automobile Enthusiast Community

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

My personal site just for fun
jayunsplanet is offline  
Old 01-15-2008, 03:11 PM   #2
Super Moderator
 
mh0825's Avatar
 
Join Date: Feb 2007
Location: Gainesville, FL
Posts: 1,287
mh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud of
Send a message via AIM to mh0825
Sure, just back up the DB and import it via SSH onto the new server.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Gators Sports Blog for Gator Nation

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
or
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
mh0825 is offline  
Old 01-15-2008, 11:38 PM   #3
Member
 
Join Date: Jan 2006
Location: Southern California
Posts: 143
lpxxfaintxx has a spectacular aura aboutlpxxfaintxx has a spectacular aura about
Send a message via AIM to lpxxfaintxx Send a message via MSN to lpxxfaintxx
Yup, SSH is the way to go!

To download the database onto your new server, you can use wget.

wget http://yourdomain.com/mysqldatabase.sql (make sure to delete once done!)

Then in your control panel, create a database and a username. Then just use the following:

mysql -u username -p databasename < databasefile.sql

It will ask for your password.
lpxxfaintxx is offline  
Old 01-16-2008, 07:10 AM   #4
Member
 
Join Date: Dec 2007
Location: Ringgold, GA
Posts: 136
AirborneKim has a spectacular aura aboutAirborneKim has a spectacular aura about
Send a message via AIM to AirborneKim Send a message via MSN to AirborneKim
Using SSH will be the quickest method of transferring the database from one server to another and then restoring it. You can also use SCP to transfer all of your files (html, php etc) over SSH from one place to another. SCP is helpful when your ISP's provided upload limit is capped and you don't want to download and re-upload via FTP.

Using SCP allows you to transfer using your upstream's (server providers) bandwidth connection, which is a plus.

If you have any questions or need help moving the database, feel free to PM me.
__________________
-
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Simplified Web Hosting

- First Month is 100% Free - 60 Day Money Back Guarantee
- 99.99% Network & Server Uptime Guarantee
AirborneKim is offline  
Old 01-20-2008, 09:15 PM   #5
Rookie
 
hitboy's Avatar
 
Join Date: Nov 2007
Posts: 17
hitboy is on a distinguished road
If you are unfamiliar with ssh I recommend having your host or someone you know do it for you
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
-
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
-
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
hitboy is offline  
Old 01-20-2008, 09:48 PM   #6
Member
 
Join Date: Dec 2007
Location: Ringgold, GA
Posts: 136
AirborneKim has a spectacular aura aboutAirborneKim has a spectacular aura about
Send a message via AIM to AirborneKim Send a message via MSN to AirborneKim
I sent over a detailed guide, I'm hoping that helps. If you have any questions, let me know and I'll be more than happy to help.
__________________
-
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Simplified Web Hosting

- First Month is 100% Free - 60 Day Money Back Guarantee
- 99.99% Network & Server Uptime Guarantee
AirborneKim is offline  
Old 01-20-2008, 11:07 PM   #7
Super Moderator
 
mh0825's Avatar
 
Join Date: Feb 2007
Location: Gainesville, FL
Posts: 1,287
mh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud ofmh0825 has much to be proud of
Send a message via AIM to mh0825
Code:
mysql -u user_name -p db_name < backup.sql
Where user_name is the MySQL username, db_name is the MySQL database name and backup.sql is the location of your backup file.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Gators Sports Blog for Gator Nation

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
or
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
mh0825 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

AdminFusion

All times are GMT +1. The time now is 12:59 AM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

© 2009 AdminFusion | Advertising Opportunities | Legal | A member of the Crowdgather Forum Community
 
From:
Title:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77