The general modification method is to click and modify one database table at a time, but this method is too inefficient. If you encounter a large number of never-path addresses in the article, the workload is even greater. At this time, we can implement batch modification by executing the sql statement in phpmyadmin. (If you don’t understand the database, you can first learn the introductory knowledge of website database.)
The operation method is very simple. You only need to open the database management phpmyadmin interface of the website space, find the sql button, and enter the following statement:
WordPress batch change domain name sql operation statement
The following are several commonly used sql statements, which can be used according to your needs.
Modify the statement in the configuration table:
UPDATE wp_options SET option_value = replace( option_value, ‘old domain’, ‘new domain’);
Modify the statement of the absolute address in the article:
UPDATE wp_options SET option_value = replace( option_value, ‘old domain’, ‘new domain’);
UPDATE wp_posts SET post_title = replace( post_title, ‘old domain’, ‘new domain’);
UPDATE wp_posts SET post_content = replace( post_content, ‘old domain’, ‘new domain’);
UPDATE wp_posts SET guid = replace( guid, ‘old domain name address’, ‘new domain name address’);
UPDATE wp_postmeta SET meta_value = replace( meta_value, ‘old domain’, ‘new domain’);
UPDATE wp_termmeta SET meta_value = replace( meta_value, ‘Old domain’, ‘New domain’);
Modify the statement in the comment:
UPDATE wp_comments SET comment_content = replace(comment_content, ‘Old domain’, ‘New domain’);
UPDATE wp_comments SET comment_author_url = replace(comment_author_url, ‘Old domain’, ‘New domain’);
Search
Popular on Blogar
Content Marketing-What is Content Marketing
- October 24th, 2023
- 1401 Views
Social Media Marketing-Social Media Marketing (SMM)
- October 24th, 2023
- 1692 Views
Pay-Per-Click-What is PPC
- October 24th, 2023
- 1271 Views
How to Activate Windows 11 Pro (No tools needed)
- September 3rd, 2024
- 99 Views
How to disable automatic updates for themes and plugins in WordPress
- August 16th, 2024
- 97 Views
Get all WordPress category names and IDs
- August 21st, 2024
- 95 Views
WordPress sticky articles in categories but not on the homepage
- August 13th, 2024
- 94 Views
WordPress-How to show single post content in front-end?
- August 26th, 2024
- 91 Views
WordPress display articles by category
- August 28th, 2024
- 86 Views
How To Find The IP Of Any Whatsapp Call
- September 3rd, 2024
- 85 Views
Recent Post
Content Marketing-What is Content Marketing
- October 24th, 2023
- 1401 Views
Social Media Marketing-Social Media Marketing (SMM)
- October 24th, 2023
- 1692 Views
Pay-Per-Click-What is PPC
- October 24th, 2023
- 1271 Views
VMware cannot install VMware Tools, prompts VMCI, memory driver
- November 25th, 2024
- 57 Views
- Howo Tractor Truck
- Howo Tipper/Dump Truck
- Howo Cargo Truck
- Howo Concrete Mixer Truck
- Howo Special Truck
- Howo Light Truck
- Shacman Tractor Truck
- Shacman Tipper/Dump Truck
- Shacman Cargo Truck
- Shacman Concrete Mixer Truck
- LGMG Mining Trucks
- XCMG Wheel Loader
- XCMG Excavator
- XCMG Crane
- XCMG Asphalt Pavers
- XCMG Road Roller
- Shantui Bulldozer
Copyright © 2024 BBBBF All Rights Reserved.