mysql config refactor