Moving WordPress Another Host Domain How to change Url adress Mysql Querys



UPDATE wp_posts SET post_content = REPLACE(post_content,
‘oldwebsite.com’, ‘newwebsite.com’);

UPDATE wp_posts SET guid = REPLACE(guid,
‘oldwebsite.com’, ‘newwebsite.com’);

UPDATE wp_postmeta SET meta_value = REPLACE(meta_value,
oldwebsite.com‘, ‘newwebsite.com’);

UPDATE wp_options SET option_value = REPLACE(option_value,
‘oldwebsite.com’, ‘newwebsite.com’);

UPDATE wp_links SET link_image = REPLACE(link_image,
‘oldwebsite.com’, ‘newwebsite.com’);

UPDATE wp_users SET user_email  = REPLACE(user_email,
‘oldwebsite.com’, ‘newwebsite.com’);

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s