mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 10:02:10 +08:00
Implement connecting via named pipe. Code contributed by gabylastar, minor modifications by me. Fixes issue #520.
This commit is contained in:
@ -9,6 +9,8 @@ const
|
||||
MCR_SUCCESS = 0;
|
||||
MCR_FAILED = 1;
|
||||
|
||||
{$I const.inc}
|
||||
|
||||
type
|
||||
|
||||
|
||||
@ -52,7 +54,13 @@ begin
|
||||
with FOpenConn.MysqlParams do
|
||||
begin
|
||||
FConn.Protocol := 'mysql';
|
||||
FConn.Hostname := Host;
|
||||
if FOpenConn.MysqlParams.NetType = NETTYPE_TCPIP then begin
|
||||
FConn.Hostname := Host;
|
||||
FConn.SocketName := '';
|
||||
end else begin
|
||||
FConn.Hostname := '.';
|
||||
FConn.SocketName := Host;
|
||||
end;
|
||||
FConn.User := User;
|
||||
FConn.Password := Pass;
|
||||
FConn.Port := Port;
|
||||
|
Reference in New Issue
Block a user