thanks, sinisa.
in case anyone else wants it, here is the shell fragment i wrote to test for
this condition. there is no timeout.
#!/bin/sh
echo -n "waiting for MySQL: "
until [ -n "`mysqladmin ping 2>/dev/null`" ]
do
echo -n "."
Aaron Brick writes:
> hi all,
>
> in debian, the /etc/init.d/mysql script waits for the appearance of
> /var/run/mysqld/mysqld.pid to conclude that the server has started. since
> the red hat init script does not do that, my program's own installer has to.
> however we have had a report that wait
a quick fix would be to see if the default port is open or not...something
like:
netstat -an | grep "3306"
you could put that in a shell script and do all sorts of tests against it.
-OR-
you could use mysqladmin and whatever flag used to check status.
hope this helps.
~rob
-Original Mes