wp_postmeta meta_value error
-
Hi Guys. I made a stupid error this afternoon because I’m tired and I just need to know if it’s possible to reverse it. Long story short, I performed an SQL query on the WP database (without backing it up before hand!!!) to change the URL of the images in the database to the new URL from the old one (dev site), but I inadvertently copied and pasted the wrong query and instead used this:
UPDATE wp_postmeta SET meta_value = replace(meta_value,’https://www.oldurl’,’https://www.newurl’);
(where the old url and the new url are the actual urls I needed to change.)
Anyway, before I knew it the home page structure has now completely gone and I cannot log into the admin in the same browser I was using when it happened. I logged in via another browser as well as an incognito tab and the admin let me in, but when I went to edit the home page there is no data on that page to edit, it’s just gone.I tried reversing the query from new to old again, but it had no effect.
What have I done and is there any way to get it back as it was again?
I feel so stupid it’s not funny…
Cheers guys
- The topic ‘wp_postmeta meta_value error’ is closed to new replies.