Ming Hsu ([EMAIL PROTECTED]) writes:

> Hi, I've been working with mysql for a couple of months now for my
> website.  Now I have to move to a different server, and would like to move
> the database as well. Problem is I have no idea what this entails and how
> to do it.  Can someone help me?  Thanks.

Easiest way is to use mysqldump:

mysqldump -c --add-drop-table DATABASE|rsh NEWSERVER "mysql DATABASE"

If you're on a Windows box, you have to redirect mysqldump to a file, copy it over to 
the new machine, then feed it to mysql.
--
Ed Carp, N7EKG          [EMAIL PROTECTED]           940/367-2744 cell phone
http://www.pobox.com/~erc               [EMAIL PROTECTED] - text pager

I sometimes wonder if the American people deserve to be free - they seem
so unwilling to fight to preserve the few freedoms they have left.

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to