Enable auto reconnect only if using mysql