A helper method to check mysql serve is avail or not