Unable to connect to mysql in another machine docker

both machines use docker.
one is a dedicated web server, and the ip is 192.168.0.100, with a route 172.17.0. Universe 16 pointing to 192.168.0.130. The
docker network segment is 172.19.0.0Universe 16. Ip:172.19.0.2 of enabled docker-web

the other one acts as a database server. The ip is 192.168.0.130, with a route 172.19.0. 0. Universe 16 pointing to 192.168.0.100. The
docker network segment is 172.17.0.0Universe 16. Ip:172.17.0.2 of enabled docker-mysql

from the 192.168.0.100 web server, the direct connection to docker-mysql, was successful, and the ping enabled docker-mysql gateway 172.17.0.1
then came the problem: docker-web 172.19.0.2 enabled from 192.168.0.100 could not connect to docker-mysql 172.17.0.2

Gateway can be reached, but docker-mysql, cannot be reached. This should be because there is no default route in docker-mysql. Then I checked

.
docker inspect mysql 
    "IPAddress": "172.17.0.2",
    "Gateway": "172.17.0.1"

this is a little confusing. May I ask why?

Mar.23,2021

suddenly finds himself a little dazed. The mysql port image started in docker points to the server, so you only need to access the port of 192.168.0.130 database server

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e49ad5-43a7c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e49ad5-43a7c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?