I am using Docker Desktop on Windows 10. Before installing Docker desktop, my jdbc url like below is connected to mysql successfully.
But after installing docker desktop on windows 10, jdbc url won’t connect to mysql. And it throws the following error message.
host ‘host.docker.internal’ is not allowed to connect to this mysql server
I opened the hosts file and found the following statements are generated.
Added by Docker Desktop
How can my jdbc url be connected to the local mysql server with IP-adddress?
Any reply please. Thanks