Title: Code in database
Last modified: July 7, 2020

---

# Code in database

 *  [rhartinger](https://wordpress.org/support/users/rhartinger/)
 * (@rhartinger)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/code-in-database/)
 * Hi, my Site seemed to be Hacked. I found some Code in the table Posts which ist
   linked to Spam Website. I can delete this Code Part manually in phomyadmin when
   I open each entry. But there are a few 100s
 * Can someone Show me a tool

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/code-in-database/#post-13092271)
 * Carefully follow [this guide](https://wordpress.org/support/article/faq-my-site-was-hacked/).
   When you’re done, you may want to implement some (if not all) of [the recommended security measures](https://wordpress.org/support/article/hardening-wordpress/)
   and [start backing up your site](https://wordpress.org/support/article/wordpress-backups/).
 *  Thread Starter [rhartinger](https://wordpress.org/support/users/rhartinger/)
 * (@rhartinger)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/code-in-database/#post-13092328)
 * I tried some of this. I found the Code in database. But i can only delete IT 
   manual
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/code-in-database/#post-13092334)
 * That’s what you’ll need to do, unless you have a pre-hack backup to restore from.
 *  Thread Starter [rhartinger](https://wordpress.org/support/users/rhartinger/)
 * (@rhartinger)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/code-in-database/#post-13092344)
 * OK. Shit. I can search the Code in phomyadmin but only replace
 *  [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/code-in-database/#post-13094542)
 * You can either download the database to your local machine and use your favourite
   text editor, or use a plugin such as [https://wordpress.org/plugins/better-search-replace/](https://wordpress.org/plugins/better-search-replace/).
   If you replace with nothing, then the bad code will be stripped out:
 * Search for: `{bad string}`
    Replace with:
 * Of course, make a backup first in case things go wrong.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Code in database’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [barnez](https://wordpress.org/support/users/pidengmor/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/code-in-database/#post-13094542)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
