[fpc-devel] MySQL Error 2026 HY000 when connection to MySQL docker container (WSL2)

Pascal Riekenberg pascal at riekenberg.eu
Fri Jun 12 09:44:59 CEST 2020


Hi,

does anyone experience similar problems
when connecting to a MySQL 8 docker container (WSL2)?

I get ErrorNo 2026 (HY000) on connect. While mysql command and MySQL Workbench work as expected.

fTransaction := TSQLTransaction.Create(Application);
fDatabase := TMySQL57Connection.Create(Application);
with fDatabase do begin
HostName := '127.0.0.1';
Port := 3311;
DatabaseName := 'sus';
UserName := 'sus';
Password := 'sus';
Transaction := fTransaction;
try
Connected := true;
except
on E:Exception do begin
fErrorMessage := E.Message;
end;
end;
end;

Lazarus trunk, FPC trunk.

Pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20200612/17f656e2/attachment.htm>


More information about the fpc-devel mailing list