ZConnection hangs for nonexistent server
Posted: 14.07.2009, 06:15
I'm using version 6.6.4 with Delphi 6. Trying to connect to mysql database:
ZConnection.HostName:='ahost';
ZConnection.Protocol:='mysql';
ZConnection.Port:=3306;
ZConnection.User:='root';
ZConnection.Password:='password';
ZConnection.Connect;
And now if ahost address connot be found then program hangs and wait forever. How to avoid it? I've tried to add
timeout=10
to ZConnection.Properties, but it didn't work.
ZConnection.HostName:='ahost';
ZConnection.Protocol:='mysql';
ZConnection.Port:=3306;
ZConnection.User:='root';
ZConnection.Password:='password';
ZConnection.Connect;
And now if ahost address connot be found then program hangs and wait forever. How to avoid it? I've tried to add
timeout=10
to ZConnection.Properties, but it didn't work.