LoginSignup
5
5

More than 5 years have passed since last update.

MySQL: ネタ Aホストのテーブルを Bホストにコピーする

Posted at

ネタ Aホストのテーブルを Bホストにコピーする

ホスト 192.168.0.199のachemaのテーブル、TABLE1を、192.168.0.100のbschemaにコピーする

mysqldumpをしつつ、出力結果をパイプで、コピー先のテーブルに適用していく

mysqldump -h 192.168.0.199 -umyaschema-pmypass aschema TABLE1  | mysql -h 192.168.0.100 -umyaschema -pmypass bschema

ちなみにもーれつに遅かった。。

5
5
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5