To import you should do

cat filename | mysql -uusername -ppassword databasename

ryan

----- Original Message -----
From: "Rachel-MY" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 01, 2001 9:38 PM
Subject: Problem with mysqldump....


Hi everyone,

        I'm trying to backup all the databases from Server_A to Server_B.
I'd issue "mysqldump" command in server_A to backup every single database,
as below :-
> mysqldump -uusername -ppassword databases_name > file_name

In server_B, i create a new database using the command below :-
> mysqladmin -uusername -ppassword create database_name

Then... i issued another "mysqldump" command to put everything back to
server_B, as below:-
> mysqldump -uusername -ppassword databases_name < file_name

Problem happened where the databases being backup are all empty!! No tables
being copied!!
Anyone have idea on this?



---------------------------------------------------------------------
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