gh-ost/vendor/github.com/go-sql-driver/mysql/.travis/wait_mysql.sh
2019-05-16 13:29:40 +03:00

9 lines
145 B
Bash
Executable File

#!/bin/sh
while :
do
if mysql -e 'select version()' 2>&1 | grep 'version()\|ERROR 2059 (HY000):'; then
break
fi
sleep 3
done