summaryrefslogtreecommitdiff
path: root/community/percona-server/mysqld-post.sh
blob: 516aeb85e302ea7b19250ed2c1230936589b96fc (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

while true; do
	response=$(/usr/bin/mysqladmin -uUNKNOWN_USER ping 2>&1) && break
	echo "$response" | grep -q "mysqld is alive" && break
	echo "$response" | grep -q "Access denied for user" && break
	sleep 1
done