<p>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.</p>

CC BY-SA 4.0
2019-02-07T03:46:06.350Z
2019-02-07T03:46:06.350Z
Harsh Manvar
<p>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!</p>

<p>I am attaching the dockerfile below. Thanks</p>

<p><a href="https://docs.google.com/document/d/1QoVXNn6dor49CCsDWUj4k0Mkyew8040tKJfKujBzqjk/edit?usp=sharing" rel="nofollow noreferrer">Dockerfile</a> </p>

CC BY-SA 4.0
2019-02-06T14:27:43.207Z
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
<docker><dockerfile><networking><mysql>
Dockerized MySql slower in Wifi than ethernet
daedalus_hamlet
# Dockerized MySql slower in Wifi than ethernet

(Asked by: username_0 on 2019-02-06)

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

[Dockerfile](https://docs.google.com/document/d/1QoVXNn6dor49CCsDWUj4k0Mkyew8040tKJfKujBzqjk/edit?usp=sharing)

**Tags:** docker, dockerfile, networking, mysql

> **Comments:**
> **username_1**: 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  

---

## 1 answers

### Answer by username_2 on 2019-02-07. Score: 0 | Accepted answer

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.


---

