#!/bin/sh
# From: Athmane Madjoudj <athmanem@gmail.com>

# FIXME: Test is very basic
echo -n "Testing MySQLd on localhost:  "
nc -w 1 localhost 3306  > /dev/null 2>&1
if [ $? -eq 0 ]; then
	echo 'PASS'
else
	echo 'FAIL'
        exit 1
fi
