Hi!
I use Zdbconnection to connect mysql
please write example properties how to connect named pipe protocol to my server
mysql.exe connected to server right
any help is welcome
mysql connect named pipe on windows
Moderators: gto, EgonHugeist
The Solution is next:
I change zdbcmysql.pas on line 457
to
If the HostName variable is '.' then connect to MySQL named pipe (it is default)
else connect TCP
thanks myself
I change zdbcmysql.pas on line 457
Code: Select all
if FPlainDriver.RealConnect(FHandle, PChar(HostName), PChar(User),
PChar(Password), PChar(Database), Port, nil,
ClientFlag) = nil then
Code: Select all
if FPlainDriver.RealConnect(FHandle, PChar(HostName), PChar(User),
PChar(Password), PChar(Database), Port, 'MySQL',
ClientFlag) = nil then
else connect TCP
thanks myself
-
- Expert Boarder
- Posts: 113
- Joined: 06.10.2006, 14:41
- Location: Chapecó - Santa Catarina
- Contact:
-
- Expert Boarder
- Posts: 113
- Joined: 06.10.2006, 14:41
- Location: Chapecó - Santa Catarina
- Contact:
Sorry, yes the os is Windows. And mysql run the next parameter:papelhigienico wrote:What's your OS? Windows? I'm asking this because I don't have how test it on Windows, I can test this change only on Linux.
--enable-named-pipe --socket=MySQL
The named pipe used only in localhost but the firewall not blocked the connection. Probably faster.
-
- Expert Boarder
- Posts: 113
- Joined: 06.10.2006, 14:41
- Location: Chapecó - Santa Catarina
- Contact:
nyuszis, Can you see if this topic helps you: http://zeos.firmos.at/viewtopic.php?t=3318