# mysql论坛迁移到discourse

**URL:** https://meta.discourse.org/t/migration-from-mysql-forum-to-discourse/288687
**Category:** Migration
**Created:** [2023年十二月14日 15:23 UTC](https://meta.discourse.org/t/migration-from-mysql-forum-to-discourse/288687 "2023-12-14T15:23:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![maaatt](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@maaatt](https://meta.discourse.org/u/maaatt)
#### Post date: [2023年十二月14日 15:23 UTC](https://meta.discourse.org/t/migration-from-mysql-forum-to-discourse/288687/1 "2023-12-14T15:23:21Z")

</div>

您好，

我正在尝试将我的旧 MySQL 论坛迁移到 Discourse，并将一个 500MB 的数据库导入到 Docker 机器中。  
我发现的问题是，即使我的硬盘有 140GB 的可用空间，并且 Docker 有 100GB 的虚拟磁盘，我的 Discourse Docker 实例的空间仍然不足。  
这是我目前的情况：

 ![Screenshot 2023-12-14 at 16.22.45](https://global.discourse-cdn.com/meta/original/4X/8/9/6/896c13fdbc5f83c9e490e8a34573f61da7c88797.png)

我不明白如何才能腾出足够的空间进行导入。谢谢！

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2023年十二月14日 17:40 UTC](https://meta.discourse.org/t/migration-from-mysql-forum-to-discourse/288687/2 "2023-12-14T17:40:29Z")

</div>

您是如何安装 MySQL 的？您是否使用了 `templates/import/mysql-dep.template.yml`？

在我看来，您有足够的空间。您是如何启动容器的？您是否将部分剩余的 132GB 挂载到了 MySQL 尝试创建其数据库的位置？

您能否让 Discourse 直接访问正在运行的数据库，从而完全跳过此步骤？
