Is it possible to test to see if the mysqld daemon is running before issuing a command to shut it down?
I have tried the processes, but mysqld does not show up.
Is there a Unix command besides ps that could be used?
Thanks for any help,
-Marc
Is it possible to test to see if the mysqld daemon is running before issuing a command to shut it down?
I have tried the processes, but mysqld does not show up.
Is there a Unix command besides ps that could be used?
Thanks for any help,
-Marc
mysqld is run by the mysql user. Try something like this:
try
do shell script "ps -U mysql | grep mysqld"
-- Put something here to stop mysqld
on error
-- If grep doesn't find anything, it will cause an error. This should mean that mysqld is not running.
end try
That’s it, thanks…