Advertisement
Fany_VanDaal

Změna URL přímo v databázi MySQL

May 23rd, 2019
203
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. UPDATE wp_posts SET guid = REPLACE(guid, 'http://stara-adresa.cz', 'http://nova-adresa.cz');
  2. UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://stara-adresa.cz','http://nova-adresa.cz');
  3. UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'http://stara-adresa.cz','http://nova-adresa.cz');
  4. UPDATE wp_options SET option_value = REPLACE(option_value, 'http://stara-adresa.cz','http://nova-adresa.cz');
Advertisement
RAW Paste Data Copied
Advertisement