Fix a MySQL connection bug.