2013-09-23 14:26:00 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
while true; do
|
|
|
|
response=$(/usr/bin/mysqladmin -uUNKNOWN_USER ping 2>&1) && break
|
|
|
|
echo "$response" | grep -q "mysqld is alive" && break
|
2013-09-23 14:41:51 +00:00
|
|
|
echo "$response" | grep -q "Access denied for user" && break
|
2013-09-23 14:26:00 +00:00
|
|
|
sleep 1
|
|
|
|
done
|