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.
Great content! Super high-quality! Keep it up! 🙂