My dac doesn t works with Indy portMapping
Posted: 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
			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