I am trying to migrate a wordpress website to a new server, which is on mediatemple.
In there migration guide, it suggests updating the site preview/paths to the IP of the server.
It gives a SQL query to run in phpMyAdmin which is:
UPDATE `dbname`.`wp_options` SET `option_value` = 'http://xxx.xxx.xxx.xxx' WHERE `wp_options`.`option_id` =1 AND `wp_options`.`blog_id` =0 AND CONVERT( `wp_options`.`option_name` USING utf8 ) = 'siteurl' LIMIT 1 ;
But can't get it to work as it reports an error when I run it.
This is the updated query inputted with my details:
UPDATE `db87924`.`db87924_rockhaq` SET `option_value` = 'http://64.207.145.39' WHERE `wp_options`.`option_id` =1 AND `db87924_rockhaq`.`blog_id` =0 AND CONVERT( `wp_options`.`option_name` USING utf8 ) = 'siteurl' LIMIT 1 ;
I'm guessing that 'option_value', 'wp_options', 'option_id' and 'option_name' need to be replaced with something but have no idea what and can't find any more info on it.
If anyone has any ideas, that would be great!
Thanks
wp-config.php might also has some hardcoded paths which need to be changed.
http://codex.wordpress.org/Editing_wp-config.php#WordPress_address_.28URL.29