Search
 
SCRIPT & CODE EXAMPLE
 

SQL

change old domain to new domain name wordpress

UPDATE wp_options
SET option_value = 'http://new-domain-name.com'
WHERE option_name = 'home';

UPDATE wp_options
SET option_value = 'http://new-domain-name.com'
WHERE option_name = 'siteurl';

UPDATE wp_posts
SET post_content = REPLACE(post_content,'http://old-domain-name.com','http://new-domain-name.com');

UPDATE wp_posts
SET guid = REPLACE(guid,'http://old-domain-name.com','http://new-domain-name.com');
Comment

PREVIOUS NEXT
Code Example
Sql :: zsh: command not found: mysql mamp 
Sql :: MySQL shutdown unexpectedly. 
Sql :: sql remove not null constraint 
Sql :: dynamic sql invalid table name 
Sql :: postgres list all stored procedures query 
Sql :: sql add column int nullable 
Sql :: t sql to rebuild all indexes in a database 
Sql :: find tables with column name in sql 
Sql :: postgresql update between 2 tables 
Sql :: insert query in ci 
Sql :: query saurce oracle 
Sql :: mysql sort descending 
Sql :: create index concurrently postgres 
Sql :: how to add CHECK constraint to a column in postgres 
Sql :: Get Minimum from multiple columns sql 
Sql :: select top 10 rows in sql 
Sql :: To count number of rows in SQL table 
Sql :: get value from a table an insert it with other values in another table sql 
Sql :: oracle trigger after logon on database 
Sql :: (PDOException(code: 2002): SQLSTATE[HY000] [2002] Permission denied at 
Sql :: how to import large sql file in phpmyadmin in ubuntu 
Sql :: duplicate records in sql 
Sql :: snowflake datetrunc month 
Sql :: sql date diff 
Sql :: How do I add a user to a postgres database? cli 
Sql :: create table in sql 
Sql :: postgresql set auto increment value 
Sql :: sql count 
Sql :: extract weekday from date in sql 
Sql :: SELECT exists sql 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =