9 lines
145 B
Bash
Raw Normal View History

2019-05-16 13:29:40 +03:00
#!/bin/sh
while :
do
if mysql -e 'select version()' 2>&1 | grep 'version()\|ERROR 2059 (HY000):'; then
break
fi
sleep 3
done