Florin,
You may put something like
# wait until mysql is ready
counter=0
while ! mysqladmin \
-h localhost -u user -pPassword ping >/dev/null 2>&1
do
counter=$((counter+1))
if [ $(($counter)) -gt $((200)) ]
then
echo "mysqld start
On Fri, 2002-06-21 at 12:09, Gerald Clark wrote:
> Or better yet,
> add a sleep 2 to the beginning of the init.d program you are starting
> that expects to connect to mysql.
>
> Why slow down the booting for everybody when some other daemon that
> expects to connect to mysql
> can not handle a
Or better yet,
add a sleep 2 to the beginning of the init.d program you are starting
that expects to connect to mysql.
Why slow down the booting for everybody when some other daemon that
expects to connect to mysql
can not handle a failed connect properly?
Florin Andrei wrote:
>The init.d scr
The init.d script provided with the MySQL RPMs has a problem: if an
application depends on MySQL (say, it's a daemon logging some data in
MySQL), and this application starts right after MySQL, it usually fails.
The reason is, when the init.d/mysql script returs, usually MySQL is not
fully running