Advertisement
Fany_VanDaal

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

May 23rd, 2019
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.41 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement