We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55cb261 commit 1ffb8c9Copy full SHA for 1ffb8c9
.travis/wait_mysql.sh
@@ -1,7 +1,13 @@
1
#!/bin/sh
2
+
3
+# use the mysql client inside the docker container if docker is running
4
+[ "$(docker inspect -f '{{.State.Running}}' mysqld 2>/dev/null)" = "true" ] && mysql() {
5
+ docker exec mysqld mysql "${@}"
6
+}
7
8
while :
9
do
- if mysql -e 'select version()' 2>&1 | grep 'version()\|ERROR 2059 (HY000):'; then
10
+ if mysql -e 'select version()'; then
11
break
12
fi
13
sleep 3
0 commit comments