Move mysql2 test for when adapter will be loaded

When run with only the Mysql adapter, we get this failure: https://travis-ci.org/rails/rails/jobs/15937907#L2416

Porting the test over to only run when mysql2 is loaded
Merge pull request #13478 from schneems/schneems/fix-mysql

Move mysql2 test for when adapter will be loaded