# 新接触 Discourse：重建 Discourse 会丢失所有 MySQL 数据吗？

**URL:** <https://meta.discourse.org/t/new-to-discourse-rebulding-discourse-means-loosing-all-mysql-data/134331>\
**Category:** Self-hosting\
**Created:** [2019年十一月24日 21:50 UTC](https://meta.discourse.org/t/new-to-discourse-rebulding-discourse-means-loosing-all-mysql-data/134331 "2019-11-24T21:50:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenaddams](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kenaddams](https://meta.discourse.org/u/kenaddams)\
**Post date:** [2019年十一月24日 21:50 UTC](https://meta.discourse.org/t/new-to-discourse-rebulding-discourse-means-loosing-all-mysql-data/134331/1 "2019-11-24T21:50:29Z")

</div>

你好  
我是 Discourse 的新手，经过几个小时的配置，我的 Discourse 现已设置完成，并成功导入了旧的 BBpress 论坛。

有个问题——我也是 Docker 的新手 🙂

如果我想更改一个 SMTP 设置，在重新构建 Docker 时，MySQL 数据库会被全部清除吗？

最佳实践是什么？

谢谢  
++

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年十一月25日 00:45 UTC](https://meta.discourse.org/t/new-to-discourse-rebulding-discourse-means-loosing-all-mysql-data/134331/2 "2019-11-25T00:45:46Z")

</div>

重新构建仅影响服务器容器，不会影响数据库。因此完全安全。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2023年八月28日 02:38 UTC](https://meta.discourse.org/t/new-to-discourse-rebulding-discourse-means-loosing-all-mysql-data/134331/3 "2023-08-28T02:38:31Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2023年九月27日 02:38 UTC](https://meta.discourse.org/t/new-to-discourse-rebulding-discourse-means-loosing-all-mysql-data/134331/4 "2023-09-27T02:38:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
