Use tempfile for mysql settings.
Fix spec