My dac doesn t works with Indy portMapping

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
alr1976
Posts: 5
Joined: Fri 08 May 2015 09:30

My dac doesn t works with Indy portMapping

Post by alr1976 » Fri 08 May 2015 09:46

Hi!

I have problem to connect with mysql with IdMappedPortTcp.
My mysql is in localhost with port 3306.... i have mapped port 4000->3306 with idmappedporttcp so i have tried to connect with Mydac on localhost and port 4000. TConnection connect with server but when i do an sql command or i use TQuery it disconnect. Who can help me?

object IdMappedPortTCP1: TIdMappedPortTCP

DefaultPort = 4000
MaxConnections = 20
ReuseSocket = rsFalse
TerminateWaitTime = 50000
MappedHost = 'localhost'
MappedPort = 3306
Left = 80
Top = 80
end

procedure TForm1.Button1Click(Sender: TObject);
begin
IdMappedPortTCP1.Active := true;
myconnection1.Connected := true;
myconnection1.GetDatabaseNames((memo1.Lines));
end;

Br,Alessandro

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

Re: My dac doesn t works with Indy portMapping

Post by ViktorV » Fri 08 May 2015 11:58

Unfortunately, we couldn't reproduce the problem in the way you have described: MySQL server wasn't turned off either on executing TMyConnection.GetDatabaseNames or on using TMyQuery. Please update MyDAC to the latest version (8.5.14). If this doesn't solve the issue, send us a small sample demonstrating the problem, including the script for creating and filling in the database objects.

Post Reply