Changer URL dans base de donnée WordPress en SQL

Bien penser a changer le préfixe de la table

update `dgwwwof_options` set option_value = REPLACE(option_value, "http://dgwww-officiel.local", "https://www.dgwww-officiel.dgwww-lab.fr");


update `dgwwwof_postmeta` set meta_value = REPLACE(meta_value, "http://dgwww-officiel.local", "https://www.dgwww-officiel.dgwww-lab.fr");


update `dgwwwof_posts` set guid = REPLACE(guid, "http://dgwww-officiel.local", "https://www.dgwww-officiel.dgwww-lab.fr"), post_content = REPLACE(post_content, "http://dgwww-officiel.local", "https://www.dgwww-officiel.dgwww-lab.fr");


update `dgwwwof_usermeta` set meta_value = REPLACE(meta_value, "http://dgwww-officiel.local", "https://www.dgwww-officiel.dgwww-lab.fr");

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *