Handle MySQL connection error.