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

  1. Enter your old domain or path (e.g., https://old-site.com)
  2. Enter your new domain or path (e.g., https://new-site.com)
  3. Select which database tables to update
  4. Adjust table prefix if different from wp_
  5. Click "Generate SQL" to create the queries
  6. Backup your database, then run the SQL queries