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!
How do you use ShowStatus?
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:
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');