Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5527

rohan_mehta on "SQL Queries Are Not Changing Subdomain to Domain"

$
0
0

I built a test site for my domain nuisbe.org at devtest2.nuisbe.org. To deploy the test site to the live site, I renamed the SQL database from the devtest2 and updated info for that in the wp-config file of the main domain. I also used an FTP to transfer all files over whilst deleting the old ones. The new site is live but all buttons/images still link to the devtest instead of the main domain. I ran these 4 SQL queries but that did not fix the issue.

UPDATE wp_options SET option_value = replace(option_value, 'http://devtest2.nuisbe.org', 'http://www.nuisbe.org') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'http://devtest2.nuisbe.org','http://www.nuisbe.org');

UPDATE wp_posts SET post_content = replace(post_content, 'http://devtest2.nuisbe.org', 'http://www.nuisbe.org');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://devtest2.nuisbe.org','http://www.nuisbe.org');

Any ideas on what to fix?


Viewing all articles
Browse latest Browse all 5527

Trending Articles