LoginSignup
0
2

More than 5 years have passed since last update.

Linuxシェル -- 巨大な圧縮ファイルから、SQLを実行する方法例

Posted at

1_前提

いくつかのMySQLからのダンプファイル(圧縮済み)が存在すること。

cd /tmp

ls -la

aaa.dump.gz
bbb.dump.gz
ccc.dump.gz

2_以下に記述

ls | xargs zcat -f | mysql -uAAAAAA -pXXXXXX --default-character-set=utf8 DB_Name
0
2
0

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