# 在帖子数据库中搜索和替换文本字符串

**URL:** https://meta.discourse.org/t/search-and-replace-a-text-string-in-the-post-database/239749
**Category:** Support
**Created:** [2022年九月22日 13:10 UTC](https://meta.discourse.org/t/search-and-replace-a-text-string-in-the-post-database/239749 "2022-09-22T13:10:34Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![simonk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonk/32/247950_2.png) [@simonk](https://meta.discourse.org/u/simonk)
#### Post date: [2022年九月22日 13:21 UTC](https://meta.discourse.org/t/search-and-replace-a-text-string-in-the-post-database/239749/2 "2022-09-22T13:21:58Z")

</div>

也许这篇帖子会有帮助？

> [@Replace a string in all posts](https://meta.discourse.org/t/replace-a-string-in-all-posts/48729?u=simonk):
>
> bookmark This guide explains how to replace a string in all posts within a Discourse instance. person_raising_hand Required user level: System Administrator warning Console Access Required Want to replace a string in all the posts on a site? Let’s get started! warning WARNING: We strongly recommend you take a full backup before proceeding, and make sure your string replacement is specific enough to affect only the places you want it to. If this string replacement goes wrong, every…

---

_[View the full topic](https://meta.discourse.org/t/search-and-replace-a-text-string-in-the-post-database/239749)._
