Re: Detecting Mysql server is running
| From: | mbox mbarsalou | Date: | Sat, 02 Oct 2004 19:39:41 +0000 |
| Subject: | Re: Detecting Mysql server is running | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198503@lists.php.net to get a copy of this message | ||
Thanks to the responses I got. One of them will surely work for me.
Mike B.
On Sat, 2004-10-02 at 01:35, Marek Kilimajer wrote:
> barsalou wrote:
> > I know I can see if php has the ability to talk with the Mysql server,
> > but is there a way to determine if the Mysql server is running. In some
> > cases, I wouldn't have passwords, so a mysql_connect wouldn't work.
>
> I'm sure, at any given time, there is a mysql server running somewhere
> in the world.
>
> If you mean if it is running on your server, run
>
> ps ax |grep mysqld | grep -v grep