SunQuest
           MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old July 14th, 2000, 11:35 AM
polman polman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 45 polman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Is this possible and how is it done? I'm changing servers and I want to keep the database that I already have created. Thanks in advance.

Reply With Quote
  #2  
Old July 14th, 2000, 01:01 PM
chrris chrris is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Aalborg, Denmark
Posts: 9 chrris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to chrris
How about making dumps of the databases (using phpMyAdmin e.g.) ?

Reply With Quote
  #3  
Old July 14th, 2000, 01:31 PM
simpson simpson is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 32 simpson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
mysqldump --opt database > backup-file.sql

Reply With Quote
  #4  
Old July 14th, 2000, 02:08 PM
polman polman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 45 polman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Thanks for the ideas but I'm kinda looking for a way to do it on the MySQL command line. If that's not possible could you explain more about teh phpMyAdmin thing that you mentioned? Thanks for your qucik responses and help.

Reply With Quote
  #5  
Old July 14th, 2000, 02:44 PM
simpson simpson is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 32 simpson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
mysqldump is command line
(a separate program that's installed when you install mysql mind you)

so instead of starting up mysql
mysqldump -u username -p databasename >backup.sql

Reply With Quote
  #6  
Old July 14th, 2000, 03:03 PM
polman polman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 45 polman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
That's exactly what I needed. Thanks a lot.

Reply With Quote
  #7  
Old July 15th, 2000, 12:20 PM
RyanP
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
If you have root access, I think that you can just move the database directory in mysql's data directory from one system to another. I tried this awhile ago and it seemed to work ok.

Reply With Quote
  #8  
Old July 15th, 2000, 04:35 PM
rod k rod k is offline
Apprentice Deity
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237 rod k User rank is Private First Class (20 - 50 Reputation Level)rod k User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 m 8 sec
Reputation Power: 13
Send a message via AIM to rod k
That *usually* works. However, if there is any version difference between the mysql servers involved you might run into a problem.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Moving MySQL databases from one server to another


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway