improve speed of mysql import

前端 未结 9 1566
無奈伤痛
無奈伤痛 2021-01-31 14:26

I have large database of 22GB. I used to take backup with mysqldump command in a gzip format.

When i extract the gz file it produces the

9条回答
  •  独厮守ぢ
    2021-01-31 15:01

    Way 1: Disable the foreign keys as fakedrake suggested.

    SET AUTOCOMMIT = 0; SET FOREIGN_KEY_CHECKS=0

    Way 2: Use BigDump, it will chunk your mysqldump file and then import that. http://www.ozerov.de/bigdump/usage/

    Question: You said that you are uploading ? how you are importing your dump ? not directly from the server /command line?

提交回复
热议问题