chutuoc-logo-600chutuoc-logo-600chutuoc-logo-600chutuoc-logo-600
  • IT Bí điển
    • Lập trình
      • Css
      • Javascript
      • Php
    • Sql
      • Sql căn bản
      • Các lệnh Sql hay dùng
    • Server and vps
      • EasyEngine
        • EasyEngine3
        • EasyEngine4
      • Docker
    • Hệ điều hành
      • Linux
        • Linux terminal command
    • Cms
      • WordPress
        • Theme wordpress
        • Plugin wordpress
    • SEO
    • Công cụ
      • Git
    • DevOps Engineer
    • Solution
✕

Query mysql update home and siteurl table wp-option wordpress

Câu lệnh SQL update url website wordpress

SET SQL_SAFE_UPDATES = 0;

UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl.com', 'http://www.newurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl.com','http://www.newurl.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl.com', 'http://www.newurl.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl.com','http://www.newurl.com');
UPDATE wp_posts SET post_excerpt = REPLACE(post_excerpt, 'http://www.oldurl.com', 'http://www.newurl.com');
Tuấn Sữa
Hướng cây là do gió, hướng cuộc đời là do chính chúng ta

Bài cùng loại

21/02/2024

Allow upload csv file for wordpress


Đọc luôn
12/10/2023

Disable xmlrpc wordpress


Đọc luôn
19/06/2021

Disable quyền ghi file wordpress


Đọc luôn
© 2016 Tuấn sữa - Blog