Wordpress SQL commands to run after database move

1. Insert here the URLs of the origin and target sites

↑↓

2. Copy the following code

UPDATE wp_options SET option_value = replace(option_value, 'http://local:8888', 'http://remote.com') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'http://local:8888','http://remote.com');

UPDATE wp_posts SET post_content = replace(post_content, 'http://local:8888', 'http://remote.com');

UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://local:8888', 'http://remote.com');

3. Paste it into the SQL tab of your database in phpMyAdmin, press "Go" when done

PHPMyAdmin screenshot