SQL duplicate entry error after migrating multisite
-
Hi,
I just duplicated two different WP multisites, in order to create staging environments in two subdomains. So, I basically created the subdomains, uploaded the backup files, created new databases, imported the tables from the backup and modified wp-config accordingly. I also searched and replaced old instances of the url with the new subdomain using the following:
UPDATE
wp_3_postsSETguid= replace(guid, ‘oldurl’, ‘newurl’);First time worked like a charm. Second time however, I’m getting an error while trying to update the url on wp_4_posts. The SQL error I get is: #1062 – Duplicate entry ‘msls_1357’ for key ‘option_name’.
I suspect msls could be related to the use of the Multisite Language Switcher plugin, but I don’t know how to find and fix this entry.
Any thoughts?
The topic ‘SQL duplicate entry error after migrating multisite’ is closed to new replies.