TmyConnection and Protocol = mpSocket

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
eduardosic
Posts: 387
Joined: Fri 18 Nov 2005 00:26
Location: Brazil

TmyConnection and Protocol = mpSocket

Post by eduardosic » Thu 04 May 2006 20:50

I have a Linux server running mysql 4.0 and a station running Windows 98, I tried to connect to the server being used the protocol of Socket and had the following error: "Wrong or unknown Protocol."

in the TmyConnection component the Direct property = False and used client library libmysql.dll (4.1) some idea?

using TCP/IP the conection is ok.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Fri 05 May 2006 13:05

This error message is received from client library that does not support connection using this kind of protocol. Please refer to MySQL Server Reference Manual for more information.

eduardosic
Posts: 387
Joined: Fri 18 Nov 2005 00:26
Location: Brazil

help...

Post by eduardosic » Sat 06 May 2006 03:29

Antaeus wrote:This error message is received from client library that does not support connection using this kind of protocol. Please refer to MySQL Server Reference Manual for more information.
I read the manual of mysql, but I did not understand very.

Is possible to connect a software developed in Delphi with myDac to a mysql server running in linux using socket?

yes or no?

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Sat 06 May 2006 10:07

MyDAC doesn't support this kind of protocol in Direct=True mode. When Direct=False, you have to use client library that supports MYSQL_PROTOCOL_SOCKET. As we know, client library from MySQL binary installation package for Windows doesn't support this protocol.

eduardosic
Posts: 387
Joined: Fri 18 Nov 2005 00:26
Location: Brazil

thanks...

Post by eduardosic » Sat 06 May 2006 13:09

Antaeus wrote:MyDAC doesn't support this kind of protocol in Direct=True mode. When Direct=False, you have to use client library that supports MYSQL_PROTOCOL_SOCKET. As we know, client library from MySQL binary installation package for Windows doesn't support this protocol.
Thanks Antaeus, this connection is possible using kylix under libmysql.so
I go to make a test.

Post Reply