accidentally changed wordpress url in setting how to revert back code example
Example: wordpress address url accidentally changed
USE wp_database_name
UPDATE wp_options SET option_value="new_value" WHERE option_name="siteurl";
UPDATE wp_options SET option_value="new_value" WHERE option_name="home";