Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: What's the best way to copy LOTS! of records between 2 mySQL servers?

by Anonymous Monk
on Aug 23, 2000 at 15:24 UTC ( [id://29180]=note: print w/replies, xml ) Need Help??


in reply to What's the best way to copy LOTS! of records between 2 mySQL servers?

mysqldump -u<username> -p<password> \ -h<remote_host> -c <databasename> | mysql \ -u<localuser> -p<localpassword> newdatabase you may add --add-drop-table on the left side of the pipe if the database tables already exists locally and -C if you are on a slow connection (uses a compressed protocol for data tranfer)
  • Comment on Re: What's the best way to copy LOTS! of records between 2 mySQL servers?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://29180]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-19 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found