Fix import huge database into Docker MySQL container

When I tried to import dump file using mysql command I saw ‘lost connection’ or ‘server has gone away’ error…

So to import huge database use next steps:

  • copy dump file into container or attach volume with it;
  • open mysql within container;
  • choose database: use <dbname>;
  • do import by: source <filename.sql>
  • wait till done

Done.

1 thought on “Fix import huge database into Docker MySQL container

Leave a Reply

Your email address will not be published. Required fields are marked *

60  +    =  63

Skynin cache:
Array ( [cache mode] => capture [requestKey] => 1003c05b1994471c81490f0527026951da8.sc [skycache_disable_capture] => false )