Sujet : Astuce Wordpress : Site de dev et site de prod
UPDATE wp_options SET option_value = replace(option_value, 'http://localhost/mon_rep_local', 'http://url_site_prod')
WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = REPLACE (guid, 'http://localhost/mon_rep_local', 'http://url_site_prod');
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://localhost/mon_rep_local', 'http://url_site_prod');
UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://localhost/mon_rep_local','http://url_site_prod');
Dernière modification par swingalink (2011-12-26 11:12:18)