The table where your URL is saved is wp_options. You should do an update on the columns that use the URL for your site:
UPDATE TABLE wp_options SET option_value = "new domain" WHERE option_name = "siteurl"
UPDATE TABLE wp_options SET option_value = "new domain" WHERE option_name = "home"
I might be missing some value, but whenever you do this find/replace process again, you can notice the values and tables that should be updated and add them to this script.
WordPress Codex has a nice guide on how to change a site URL, maybe that’s even handier for you: Changing the Site URL
Related Posts:
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- What’s the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN? [duplicate]
- Cannot delete or update a parent row: a foreign key constraint fails
- Cannot delete or update a parent row: a foreign key constraint fails
- How do I restore a dump file from mysqldump?
- #1273 – Unknown collation: ‘utf8mb4_unicode_520_ci’
- What does SQL Select symbol || mean?
- What is the definition of cardinality in SQL
- When to use SELECT … FOR UPDATE?
- Column ‘user_id’ in field list is ambiguous
- How to join two tables by multiple columns in SQL?
- mysql Foreign key constraint is incorrectly formed error
- Selecting data from two different tables without using joins
- 1052: Column ‘id’ in field list is ambiguous
- 1052: Column ‘id’ in field list is ambiguous
- MySQL: Invalid use of group function
- Getting “Lock wait timeout exceeded; try restarting transaction” even though I’m not using a transaction
- Simple Random Samples from a Sql database
- ERROR 1452: Cannot add or update a child row: a foreign key constraint fails
- What does SQL clause “GROUP BY 1” mean?
- SQL ZOO List each continent and the name of the country that comes first alphabetically
- How can I prevent SQL injection in PHP?
- Fatal error: Please read “Security” section of the manual to find out how to run mysqld as root
- Generating a random & unique 8 character string using MySQL
- SQL select only rows with max value on a column
- SQL statement not working – “Operand type clash: date is incompatible with int’
- Convert partially non-numeric text into number in MySQL query
- Repair all tables in one go
- How can I search (case-insensitive) in a column using LIKE wildcard?
- #1062 – Duplicate entry for key ‘PRIMARY’
- How to do a batch insert in MySQL
- ERROR 1115 (42000): Unknown character set: ‘utf8mb4’
- SQL – IF EXISTS UPDATE ELSE INSERT INTO
- Remove Primary Key in MySQL
- Is merge statement available in MySQL
- Error: Duplicate entry ‘0’ for key ‘PRIMARY’
- How do you properly prepare a %LIKE% SQL statement?
- Is there a way to list all used/unused WP templates?
- Optimize WordPress Query that take 5 seconds to execute
- Scanning Database for malicious Data
- Optimize Multiple Taxonomy Term MySQL Query?
- wpdb->prepare function remove single quote for %s in SQL statment
- Multipart/formatted MySQL query problem
- What specific database privileges does WordPress need?
- Fulltext search in posts sorted by relevancy
- SQL query equivalent to WP User Query
- Extending the database
- How to find if a post with custom_field == X exists?
- Are database queries created using WordPress filters protected from SQL injection?
- Search and replace in post content
- Query WordPress database by registered date and role
- How to find meta entries with their posts missing via SQL?
- How do I see the mysql query generated by get_posts( $args )?
- Order by summing multiple values
- SQL Database, repeated tables?
- Include data from custom table in WP_Query
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- WordPress Custom post query sorting does not work
- Code to remove authors with no posts connected to them
- Making a query to the DB using same parameters of loop
- Which is better and faster ? WordPress Queries or SQL Query
- SQL Query in WordPress – Getting Impossible WHERE error
- Custom SELECT Query With Multiple Meta Values (Ordering Problem)
- How to get INSERT errors from $wpdb?
- how to insert missing tags into the posts through mySQL?
- SQL query to set posts in bulk based on the post content
- MySQL query for taxonomy-meta
- How can I write a formal sql query to get data from a custom table
- mySQL queries are executed twice on wordpress website
- SQL query to get posts from multiple categories but not in a category
- latency problems with wordpress install (from SQL import)
- I want to get on those users their meta value are like “AGENT” .. but this query is not working
- Lock wait timeout exceeded; try restarting transaction
- Find locations of all featured images of draft posts via SQL
- SQL query to change custom field in WordPress database
- SQL query to delete users with multiple meta keys and comments
- How to show result of sql query in a page?
- update_option returns false in AJAX, how to debug?
- Improving performance of SQL sub-queries in WordPress
- WPDB delivers wrong results from complex queries
- How to change link in all posts?
- Display MySQL as part of a Page
- Are there any best practices for creating a Like/Favourite feature in WordPress using custom MySQL tables and without any plugins?
- $wpdb post type and term query only works when there are no dashes or spaces in the term slug and title
- Fastest and most efficient SQL query to check if UID exists
- How to make MySQL search queries with quotes
- Add commentmeta custom field to every published comment with SQL
- get_results() query not working only when entering strings
- SQL error on restoring database
- Query sql for truncate post_content in wp_posts table
- Custom WordPress SQL Query 4 posts per custom taxonomy
- Special Query: Title, Terms, Content – %LIKE%
- Woocommerce: Grab total revenue of a product over all orders
- Global MySQL replacing of text patterns/matches
- Delete posts with word count less than x number of words
- SQL – Pull products of particular category from a remote WordPress woocommerce db
- SQL command to export post_content from wp_posts using phpMyAdmin
- SQL Query to get post_id from wp_posts and and meta_key(s) from wp_postmeta
- SQL get last entry of a specific gravity form