ScAlAn

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 *