mysqldump -hhost -uuser -ppw --opt --all-databases >all-dbs.sql
mysql -hnewhost -uuser -ppw <all-dbs.sql
or as one command:
mysqldump -hhost -uuser -ppw --opt --all-databases |
mysql -hnewhost -uuser -ppw
you can leave out the -hhost(newhost) if you ftp the file from one
machine to the other.
Check the very excellent manual:
http://www.mysql.com/documentation/mysql/bychapter/manual_Tools.html#m
ysqldump
---------------------------------------------
Ken Menzel ICQ# 9325188
www.icarz.com [EMAIL PROTECTED]
----- Original Message -----
From: "Tom Cruickshank" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 2:59 PM
Subject: Importing/Exporting mysql databases
> Hello,
> I am trying to export several databases from one mysql server on
one linux
> box and import them all to another mysql server on another linux
box. I just
> completely forgot what the syntax is. Would someone be able to help
me? Thanks!
>
> Sincerely,
>
> Tom Cruickshank
>
> ----------------------------------
> E-Mail: Tom Cruickshank <[EMAIL PROTECTED]>
> Date: 02-Feb-01
> Time: 14:55:59
>
> This message was sent by XFMail
> ----------------------------------
>
> --------------------------------------------------------------------
-
> 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
>
>
---------------------------------------------------------------------
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