When I try to connect to a MySQL server that runs in a docker container(in System A) through my application(Running in system B) via wifi, it takes at least 4X amount of time than it would when both systems are connected via ethernet. I tried adding skip-name-resolve in my.cnf and mysqld.cnf but in vain. I cannot find where the problem is and how the same can be solved!

I am attaching the dockerfile below. Thanks


  • 2
    You mean that your connection is slower over wifi than over ethernet? that don't really seems a problem with mysql, docker or something else beside that it is a wifi connection. There are no real fixes beside not using wifi. It isn't the container that is slower, its your connection
    – Serverfrog
    Feb 6, 2019 at 14:27

1 Answer 1


your mysql server running on system A and if you are trying to make connection vai wifi or sending request to make connection on mysql it is mya possible reason should be latency in network. if both system is different and you have exposed you mysql to internet then also it may happen.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.