Work around MySQL issues in testsuite