Fix bug where mysql2 adapter would result in connection error