# flarum搭建求助

**URL:** <https://2hkj2s.loc.rr.kg/t/topic/26312>\
**Category:** 杂谈\
**Created:** [2024 年10 月 21 日 17:52 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312 "2024-10-21T17:52:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaoixiao](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/xiaoixiao/32/89_2.png) [@xiaoixiao](https://2hkj2s.loc.rr.kg/u/xiaoixiao)\
**Post date:** [2024 年10 月 21 日 17:52 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/1 "2024-10-21T17:52:07Z")

</div>

有佬友们知道搭建flarum的时候连接数据库报错的原因吗  
  
[upl-image-preview url=[https://2hkj2s.loc.rr.kg/uploads/default/2024-10-21/1729504322-18030-image.png](https://2hkj2s.loc.rr.kg/uploads/default/2024-10-21/1729504322-18030-image.png)]

---

<div class="post-metadata">

**Author:** ![March7](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/march7/32/19391_2.png) [@March7](https://2hkj2s.loc.rr.kg/u/March7)\
**Post date:** [2024 年10 月 21 日 17:57 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/2 "2024-10-21T17:57:07Z")

</div>

怪事,你是怎么搭的,教程发出来看看

---

<div class="post-metadata">

**Author:** ![xiaoixiao](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/xiaoixiao/32/89_2.png) [@xiaoixiao](https://2hkj2s.loc.rr.kg/u/xiaoixiao)\
**Post date:** [2024 年10 月 21 日 17:58 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/3 "2024-10-21T17:58:50Z")

</div>

就按照这个教程啊  
  
[https://discuss.flarum.org.cn/d/4354](https://discuss.flarum.org.cn/d/4354)

---

<div class="post-metadata">

**Author:** ![alay](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/alay/32/23_2.png) [@alay](https://2hkj2s.loc.rr.kg/u/alay)\
**Post date:** [2024 年10 月 21 日 18:04 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/4 "2024-10-21T18:04:38Z")

</div>

MySQL Host：数据库连接地址  
  
你写的啥？localhost ？

---

<div class="post-metadata">

**Author:** ![xiaoixiao](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/xiaoixiao/32/89_2.png) [@xiaoixiao](https://2hkj2s.loc.rr.kg/u/xiaoixiao)\
**Post date:** [2024 年10 月 21 日 18:05 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/5 "2024-10-21T18:05:08Z")

</div>

@“alay”#p123549 对啊  
  
localhost

---

<div class="post-metadata">

**Author:** ![xiaoixiao](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/xiaoixiao/32/89_2.png) [@xiaoixiao](https://2hkj2s.loc.rr.kg/u/xiaoixiao)\
**Post date:** [2024 年10 月 21 日 18:05 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/6 "2024-10-21T18:05:32Z")

</div>

@“alay”#p123549 严格按照教程走的，就到这一步

---

<div class="post-metadata">

**Author:** ![alay](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/alay/32/23_2.png) [@alay](https://2hkj2s.loc.rr.kg/u/alay)\
**Post date:** [2024 年10 月 21 日 18:08 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/7 "2024-10-21T18:08:26Z")

</div>

@“菜菜的菜菜i”#p123550 写容器的名字。  
  
[upl-image-preview url=[https://2hkj2s.loc.rr.kg/uploads/default/2024-10-21/1729505305-364501-1729505301444.png](https://2hkj2s.loc.rr.kg/uploads/default/2024-10-21/1729505305-364501-1729505301444.png)]

---

<div class="post-metadata">

**Author:** ![alay](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/alay/32/23_2.png) [@alay](https://2hkj2s.loc.rr.kg/u/alay)\
**Post date:** [2024 年10 月 21 日 18:10 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/8 "2024-10-21T18:10:55Z")

</div>

置顶的教程你不用，那个教程图都没有！

https://discuss.flarum.org.cn/d/15903

---

<div class="post-metadata">

**Author:** ![xiaoixiao](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/xiaoixiao/32/89_2.png) [@xiaoixiao](https://2hkj2s.loc.rr.kg/u/xiaoixiao)\
**Post date:** [2024 年10 月 21 日 18:10 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/9 "2024-10-21T18:10:59Z")

</div>

@“alay”#p123557 也试过了，报错，不过跟这个错不一样。我现在在用 1 panel的应用，看看可以不

---

<div class="post-metadata">

**Author:** ![xiaoixiao](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/xiaoixiao/32/89_2.png) [@xiaoixiao](https://2hkj2s.loc.rr.kg/u/xiaoixiao)\
**Post date:** [2024 年10 月 21 日 18:11 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/10 "2024-10-21T18:11:35Z")

</div>

@“alay”#p123558 😄一样的。

---

<div class="post-metadata">

**Author:** ![xiaoixiao](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/xiaoixiao/32/89_2.png) [@xiaoixiao](https://2hkj2s.loc.rr.kg/u/xiaoixiao)\
**Post date:** [2024 年10 月 21 日 18:12 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/11 "2024-10-21T18:12:06Z")

</div>

@“alay”#p123558 我把服务器重装一下看看

---

<div class="post-metadata">

**Author:** ![alay](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/alay/32/23_2.png) [@alay](https://2hkj2s.loc.rr.kg/u/alay)\
**Post date:** [2024 年10 月 21 日 18:12 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/12 "2024-10-21T18:12:10Z")

</div>

我前天装的时候非要我填这个：Table Prefix：数据表前缀（可留空）

你的报错截图看看

---

<div class="post-metadata">

**Author:** ![xiaoixiao](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/xiaoixiao/32/89_2.png) [@xiaoixiao](https://2hkj2s.loc.rr.kg/u/xiaoixiao)\
**Post date:** [2024 年10 月 21 日 18:13 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/13 "2024-10-21T18:13:46Z")

</div>

@“alay”#p123565 我在试应用  
  
[upl-image-preview url=[https://2hkj2s.loc.rr.kg/uploads/default/2024-10-21/1729505616-368420-image.png](https://2hkj2s.loc.rr.kg/uploads/default/2024-10-21/1729505616-368420-image.png)]  
  
这数据库死活连接不上

---

<div class="post-metadata">

**Author:** ![xiaoixiao](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/xiaoixiao/32/89_2.png) [@xiaoixiao](https://2hkj2s.loc.rr.kg/u/xiaoixiao)\
**Post date:** [2024 年10 月 21 日 18:14 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/14 "2024-10-21T18:14:06Z")

</div>

@“alay”#p123565 我吧系统装一下，重新搞

---

<div class="post-metadata">

**Author:** ![alay](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/alay/32/23_2.png) [@alay](https://2hkj2s.loc.rr.kg/u/alay)\
**Post date:** [2024 年10 月 21 日 18:20 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/15 "2024-10-21T18:20:11Z")

</div>

[https://sx.sd/](https://sx.sd/)

重装了一遍，  
但composer require flarum/extension-manager  
死活开启不了。

---

<div class="post-metadata">

**Author:** ![James](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/james/32/1745_2.png) [@James](https://2hkj2s.loc.rr.kg/u/James)\
**Post date:** [2024 年10 月 21 日 18:29 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/16 "2024-10-21T18:29:00Z")

</div>

@“alay”#p123573 这个插件问题也不少，我都不用。

---

<div class="post-metadata">

**Author:** ![Anonymous3](https://2hkj2s.loc.rr.kg/letter_avatar_proxy/v4/letter/a/7c8e57/32.png) [@Anonymous3](https://2hkj2s.loc.rr.kg/u/Anonymous3)\
**Post date:** [2024 年10 月 21 日 18:31 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/17 "2024-10-21T18:31:13Z")

</div>

我用宝塔装的，感觉省事一些

---

<div class="post-metadata">

**Author:** ![alay](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/alay/32/23_2.png) [@alay](https://2hkj2s.loc.rr.kg/u/alay)\
**Post date:** [2024 年10 月 21 日 18:31 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/18 "2024-10-21T18:31:44Z")

</div>

@“James”#p123578 你的那些插件，我都用他装的，但现在extension-manager装上了，死活开启不了。

那你如何装呢？你那些都不在库里的插件

---

<div class="post-metadata">

**Author:** ![alay](https://2hkj2s.loc.rr.kg/user_avatar/2hkj2s.loc.rr.kg/alay/32/23_2.png) [@alay](https://2hkj2s.loc.rr.kg/u/alay)\
**Post date:** [2024 年10 月 21 日 18:36 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/19 "2024-10-21T18:36:02Z")

</div>

@“帅气的呱呱”#p123581 宝塔问题也多

---

<div class="post-metadata">

**Author:** ![Anonymous3](https://2hkj2s.loc.rr.kg/letter_avatar_proxy/v4/letter/a/7c8e57/32.png) [@Anonymous3](https://2hkj2s.loc.rr.kg/u/Anonymous3)\
**Post date:** [2024 年10 月 21 日 18:36 UTC](https://2hkj2s.loc.rr.kg/t/topic/26312/20 "2024-10-21T18:36:55Z")

</div>

@“alay”#p123586 我按教程装的还算顺利

[下一页](https://2hkj2s.loc.rr.kg/t/topic/26312.md?page=2)
