Image Path SQL Generator
Generate SQL queries to update paths/domains across WordPress database tables.
Domain/Path Configuration
Tables to Update
Generated SQL Queries
Important:
- Always backup your database before running these queries
- Test on a staging site first
- Run queries in the order shown
- Consider using a plugin like Better Search Replace for serialized data
Features
- Generate SQL queries for domain/path changes
- Update wp_options, wp_posts, wp_postmeta, wp_comments
- Handle GUIDs and post content
- Custom table prefix support
- Safe, tested SQL patterns
How to Use
- Enter your old domain or path (e.g., https://old-site.com)
- Enter your new domain or path (e.g., https://new-site.com)
- Select which database tables to update
- Adjust table prefix if different from wp_
- Click "Generate SQL" to create the queries
- Backup your database, then run the SQL queries