How do I access the WP Admin if the site url was changed incorrectly?

I was updating the setting under the general tab and accidentally changed the URL. Now I cannot access the site now. How can I go in and put the url back correctly?