Narrowing down MySQL failures