Skip to content

Instantly share code, notes, and snippets.

@MarceloGlez
Last active July 13, 2021 17:22
Show Gist options
  • Save MarceloGlez/63f5f33ed8271666b2366f1918cbfc07 to your computer and use it in GitHub Desktop.
Save MarceloGlez/63f5f33ed8271666b2366f1918cbfc07 to your computer and use it in GitHub Desktop.
Código elemental para actualizar la base de datos en SQL
/*Intruducir cada línea por separado en BD creada previamente en phpMyAdmin*/
UPDATE wp_options SET option_value = REPLACE ( option_value, 'webanterior.com', 'webnueva.com' );
UPDATE wp_posts SET guid = REPLACE ( guid, 'webanterior.com', 'webnueva.com' );
UPDATE wp_posts SET post_content = REPLACE ( post_content, 'webanterior.com', 'webnueva.com' );
UPDATE wp_postmeta SET meta_value = REPLACE ( meta_value, 'webanterior.com', 'webnueva.com' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment