Hello all,
Can someone please explain the use TMyConnection.Ping?
According to the help file
procedure Ping;
Description
Use this method if your application has a long time intervals between accessing the server. Ping function allows to avoid automatic disconnection of the client by the server. You can read the details at MySQL Reference Manual (mysql_ping and wait_timeout)
Looking forward to your answers.
Cheers!
NOTE: What I'm trying to do this check if a remote mySQL server/service is running.
TMyConnection.Ping
You should use this method if your connection with server was established some time ago and you need to check whether this connection or the server is working. If the server is not working the method raises an exception.
If you have not established connection you can use the Connect method to check if the MySQL server is running.
If you have not established connection you can use the Connect method to check if the MySQL server is running.