Fix writing mysql2 adapter to database.yml.

Change-Id: Ifee76eec8d3c6f17e22d21c3fe5ec279ff796388
Merge "Fix writing mysql2 adapter to database.yml."