How do you use ShowStatus?

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
PhilNS
Posts: 2
Joined: Tue 09 Dec 2008 14:34
Location: Coventry, England

How do you use ShowStatus?

Post by PhilNS » Tue 09 Dec 2008 14:42

I sure this has been asked before but after trawling pages of your forums I gave up.

How do you use TMyServerControl.ShowStatus and will it show me how long the MySQL server has been running on the system?

I am using Dephi6 on an XP system.

How about adding a topic search on your forum there must be tonnes of useful advice in all those pages!

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

Post by Dimon » Thu 11 Dec 2008 12:44

To get TMyServerControl.ShowStatus you should use TMyServerControl as usual DataSet: display it in dbgrid, or use Fields[].
To know how long the MySQL server has been running you can use the Uptime variable, like this:

Code: Select all

  MyServerControl.ShowStatus;
  strTime := MyServerControl.Lookup('variable_name', 'Uptime', 'value');

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

Post by Dimon » Thu 11 Dec 2008 12:44

To search information on this forum you can use the 'Search' button.

Post Reply