1. First, check the current values:

SELECT * FROM wp_options WHERE option_name = “siteurl”; 

SELECT * FROM wp_options WHERE option_name = “home”;

2. Then modify the values:

UPDATE wp_options SET option_value=”http://[new domain name or ip address, without trailing slash]” WHERE option_name = “siteurl”;

UPDATE wp_options SET option_value=”http://[new domain name or ip address, without trailing slash]” WHERE option_name = “home”;

3. Check the new values:

SELECT * FROM wp_options WHERE option_name = “siteurl”; 

SELECT * FROM wp_options WHERE option_name = “home”;