How to check if mysql 5 is online delphi7.

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Guest

How to check if mysql 5 is online delphi7.

Post by Guest » Tue 13 Dec 2005 11:27

"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

Guest

Post by Guest » Tue 13 Dec 2005 12:47

my mistake it works just fine

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Wed 14 Dec 2005 10:20

Also you can try to check status of MySQL service by using TMyServerControl.ServiceStatus method.

damienwright
Posts: 2
Joined: Wed 27 May 2009 15:10

Post by damienwright » Thu 28 May 2009 15:25

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.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 29 May 2009 07:38

TCRServiceStatus is equal to the TCurrentStatus Delphi type. You can find information about this type in the Delphi help.

Post Reply