gh-ost/vendor/github.com/go-sql-driver/mysql/.travis/wait_mysql.sh

9 lines
145 B
Bash
Raw Normal View History

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