How Do I Toggle an Inactive Membership

I accidentally toggled the main admin user's account to inactive and now I can't make any membership role changes. Is there a way to set that user back to active without being able to log into the site?