DockerNAT has been removed from Docker Desktop 188.8.131.52 as using an IP address to communicate from the host to a container is not a supported feature. To communicate from a container to the host, you must use the special DNS name host.docker.internal. We also recommend using ports to communicate from the host to a container. For more information, see Networking.
It is not possible to use localhost in the proxy settings. You can instead use host.docker.internal to work around this issue.
$ mysql -h host.docker.internal ...