Can't connect to MySql using Host name on Android

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Diego_Foli
Posts: 2
Joined: Thu 09 May 2019 15:34

Can't connect to MySql using Host name on Android

Post by Diego_Foli » Thu 09 May 2019 15:42

I am passing the parameters in execution time
TMyConnection.Server:= 'Server';
In Windows works perfectly, but in Android work only if i use the IP Adress instead of Server name itself.

ViktorV
Devart Team
Posts: 2793
Joined: Wed 30 Jul 2014 07:16

Re: Can't connect to MySql using Host name on Android

Post by ViktorV » Fri 10 May 2019 09:59

The issue is not related to the MyDAC functionality, and occurs when a device can’t resolve the DNS name.
You have found the right solution to the problem by using an IP address instead of a DNS host name.

Post Reply