Search
 
SCRIPT & CODE EXAMPLE
 

SQL

wordpress sql change site url

# Check your table prefix
# Change all the tables 

UPDATE wp_options SET option_value = 
replace(option_value, 'oldurl.com', 'newurl.com') WHERE option_name = 'home' 
OR option_name = 'siteurl';UPDATE wp_posts SET guid = 
replace(guid, 'oldurl.com','newurl.com');
UPDATE wp_posts SET post_content = replace(post_content, 'oldurl.com', 'newurl.com');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'oldurl.com','newurl.com');
Comment

change site url wordpress database

options table
1. siteurl
2. home

######## OR ########

// Add to top of wp-config.php
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );
Comment

PREVIOUS NEXT
Code Example
Sql :: copy from folders in sql server 
Sql :: oracle aleter trigger ora-01031 
Sql :: pl sql dynamic sql drop doesnt work 
Sql :: postgresql show current database 
Sql :: dual table in aql 
Sql :: postgres check blocking 
Sql :: bigquery get current date 
Sql :: set permanent SET GLOBAL sql_mode ubuntu 
Sql :: grant all privileges mysql 8.0.21 
Sql :: how to check nls format in oracle 
Sql :: mysql disable foreign keys check 
Sql :: day of week postgresql 
Sql :: mysql select for update ejemplo 
Sql :: oracle export view ddl 
Sql :: prosys sql log 
Sql :: create table with primary key auto increment in sql 
Sql :: insert current timestamp in postgresql 
Sql :: sql select contem uma palavra 
Sql :: sql sample tables with data 
Sql :: oracle sequence last_number 
Sql :: create row number in sql 
Sql :: mysql login console 
Sql :: create column sql server 
Sql :: Step 1: Installing MySQL Client You can install MySQL client directly through pip using the command pip install mysqlclient 
Sql :: oracle list user grants 
Sql :: oracle create datafile 
Sql :: sql string starts with 
Sql :: sql select all from table 
Sql :: get last week data in mysql 
Sql :: this is incompatible with sql_mode=only_full_group_by laravel 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =