This little script can help you debug problems with your db slaves by testing each slave connection one by one and printing out any connection errors.