Title: Wrong sql execution
Last modified: November 16, 2021

---

# Wrong sql execution

 *  [maxidavis](https://wordpress.org/support/users/maxidavis/)
 * (@maxidavis)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/wrong-sql-execution/)
 * Hi there,
    I accidently executed a sql command in phpmyadmin.
 * Instead of:
    UPDATE wp_posts SET guid = REPLACE(guid, ‘domainA’, ‘domainB’);
 * I executed:
 * UPDATE wp_posts SET guid = REPLACE(post_content, ‘domainA’, ‘domainB’);
 * Now, I can’t edit or save posts/pages.
    How can I get this work out? I don’t 
   have a backup.
 * Hope you can help me,
    Best Max

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/wrong-sql-execution/#post-15074522)
 * Do youhave a backup of your DB taken before you executing the command?
 * If so, try restoring it.
 * If you don’t, then ask your hosting provider if they have one, if they do, ask
   them to restore it.

Viewing 1 replies (of 1 total)

The topic ‘Wrong sql execution’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/wrong-sql-execution/#post-15074522)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
