Page 1 of 1

How to check if mysql 5 is online delphi7.

Posted: Tue 13 Dec 2005 11:27
by Guest
"IF TCDataModule.TCConnection.Connected = false THEN" crashes.

I need to check if the database is online before i start up my mainprogram.
Any ideas how to implement?

/Alex

Posted: Tue 13 Dec 2005 12:47
by Guest
my mistake it works just fine

Posted: Wed 14 Dec 2005 10:20
by Ikar
Also you can try to check status of MySQL service by using TMyServerControl.ServiceStatus method.

Posted: Thu 28 May 2009 15:25
by damienwright
ServiceStatus appears to return a TCRServiceStatus type but I cannot find the definition of this in any of the help files. Can you please post it here.

Many thanks and best regards,

Damien.

Posted: Fri 29 May 2009 07:38
by Dimon
TCRServiceStatus is equal to the TCurrentStatus Delphi type. You can find information about this type in the Delphi help.