hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Need Help: Quickly moving MySql databases from one server to another
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Need Help: Quickly moving MySql databases from one server to another

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-17-2004, 03:47 PM
StephenS StephenS is offline
Newbie
 
Join Date: Jun 2003
Posts: 6

Need Help: Quickly moving MySql databases from one server to another


I currently have vBulletin and photopost installed on a server, I recently purchased a new server so need to move the databases over to the new server.

Being fairly new to MySQL and what not, I have no idea how I would go about doing this.

Any help would be greatly appreciated!

Regards,
Stephen

Reply With Quote


Sponsored Links
  #2  
Old 02-17-2004, 04:14 PM
MaB MaB is offline
Web Hosting Master
 
Join Date: Oct 2001
Posts: 1,244
/etc/rc.d/init.d/mysql(d) stop
cd /var/lib
tar -czvf mysql.tar.gz mysql

transfer mysql.tar.gz to new server into /var/lib dir

new server:
install mysql.
/etc/rc.d/init.d/mysql(d) stop
cd /var/lib;
tar -xzvf mysql.tar.gz

/etc/rc.d/init.d/mysql(d) start

__________________
Avi Brender
Reliable Web Hosting by Elite Hosts, Inc
CPANEL Reseller Hosting - Fantastico - Rvskins - ClientExec


Reply With Quote
  #3  
Old 02-17-2004, 04:48 PM
amc-james amc-james is offline
Web Hosting Master
 
Join Date: Mar 2003
Location: New Jersey
Posts: 1,272
MaB speaks the truth. Just make sure the proper users/groups are on the new box and that the permissions/ownerships are retained.

__________________
James Cornman - jcornman@atlanticmetro.net
Atlantic Metro Communications - AS29838
Data Centers • Managed Hosting • Internet Access • VMware vCloud Partner

Reply With Quote
Sponsored Links
  #4  
Old 02-17-2004, 05:25 PM
SkullOne SkullOne is offline
Junior Guru Wannabe
 
Join Date: Mar 2003
Location: Portland, OR
Posts: 89
Theres another way, but its more complicated
Just dump each database to a .sql file, and assuming you have mysql running on another syste, you can just pipe that .sql file into an already running server
mysql -u username -p -D yourdb < backup.sql

Theres also other ways, but making a tar file is probably the easiest
Some DBA's will tell you thats totaly wrong, but hey, it works.

__________________
Brent Jones
Unix / Linux Systems Administrator (FreeBSD, OpenBSD, Redhat, CentOS)
cPanel, Plesk, Ensim, DirectAdmin Installations and Support
Contact me (brent [at] servuhome [dot] net)

Reply With Quote
  #5  
Old 02-17-2004, 05:36 PM
MaB MaB is offline
Web Hosting Master
 
Join Date: Oct 2001
Posts: 1,244
I'd also make sure you install the same MySQL version on the new server as you have on the old server - just to make 100% sure that the zipped files will work...

after its running on the new server with the old sql version, install the latest mysql rpms and it will upgrade and save your data.

__________________
Avi Brender
Reliable Web Hosting by Elite Hosts, Inc
CPANEL Reseller Hosting - Fantastico - Rvskins - ClientExec


Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host AIT Releases New Version of Server Management Control Panel Web Hosting News 2012-08-27 13:23:00
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Web Host 1&1 Internet UK Adds Business Hosting Plan, Cloud Server Features Web Hosting News 2011-09-13 15:50:08
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43
Web Host Servers Australia Deploys R1Soft Continuous Data Protection Web Hosting News 2011-06-27 20:02:15


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?