Search
 
SCRIPT & CODE EXAMPLE
 

SQL

wordpress sql find and replace

UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl');

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl');
Comment

PREVIOUS NEXT
Code Example
Sql :: postgres sequence name 
Sql :: psql filed name alter 
Sql :: ms sql rename database 
Sql :: create new table plsql 
Sql :: get size of indexes postgres 
Sql :: drush sql-dump 
Sql :: sql server get timezone 
Sql :: postgres stop server mac 
Sql :: sql getdate date only 
Sql :: set database timezone mysql 
Sql :: dbms_scheduler stop job 
Sql :: oracle sql first day of month 
Sql :: syntax for changing column size in mysql 
Sql :: postgres delete database 
Sql :: ORA-01950 
Sql :: mysql monthname 
Sql :: sql pick random row 
Sql :: mysql drop primary key 
Sql :: django sqlite database 
Sql :: oracle detect invalid password 
Sql :: mysql check if string contains comma separated 
Sql :: get all records who register today in mysql 
Sql :: mysql show table column full description 
Sql :: mysql get domain from url 
Sql :: mysql events not work 
Sql :: mysql drop column 
Sql :: sql server user permissions and roles 
Sql :: oracle current timestamp insert statement 
Sql :: oracle user quota unlimited 
Sql :: oracle add months to sysdate 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =