How to quickly change the wordpress site url editing wp-config.php

wp-config.php has many options to change and customize many wordpress settings. Changing the site url is one option which can be very useful if due to an incorrect site URL you are unable to log into the wordpress admin section. To change edit wp-config.php and add in


Change to your own domain name.

The changes should go under the MySQL settings.