Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Answer: 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 ( #29180=categorized answer: print w/replies, xml ) Need Help??

Q&A > database programming > What's the best way to copy LOTS! of records between 2 mySQL servers? - Answer contributed by Anonymous Monk

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 Answer: 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
Chatterbox?
[Discipulus]: chickenman do you know which kind of configuration file do you have? it is some standard?

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2018-02-20 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (268 votes). Check out past polls.

    Notices?