From da635d0b3b5feb38bed14b0a59d7c8d577f9dfc1 Mon Sep 17 00:00:00 2001 From: xboard Date: Fri, 17 Jan 2025 18:00:43 +0800 Subject: [PATCH] docs: update 1panel docs --- docs/en/installation/1panel.md | 7 +++++-- docs/zh-CN/installation/1panel.md | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/en/installation/1panel.md b/docs/en/installation/1panel.md index 062cb36..610b062 100644 --- a/docs/en/installation/1panel.md +++ b/docs/en/installation/1panel.md @@ -125,8 +125,11 @@ docker compose run -it --rm web php artisan xboard:install ⚠️ Important Configuration Notes: 1. Database Configuration - - Database Host: Enter `mysql` (not localhost or 127.0.0.1) - - Database Port: `3306` + - Database Host: Choose based on your deployment: + 1. If database and Xboard are in the same network, use `mysql` + 2. If connection fails, go to: Database -> Select Database -> Connection Info -> Container Connection, and use the "Host" value + 3. If using external database, enter your actual database host + - Database Port: `3306` (default port unless configured otherwise) - Database Name: `xboard` (the database created earlier) - Database User: `xboard` (the user created earlier) - Database Password: Enter the password saved earlier diff --git a/docs/zh-CN/installation/1panel.md b/docs/zh-CN/installation/1panel.md index b05fa6e..d76613d 100644 --- a/docs/zh-CN/installation/1panel.md +++ b/docs/zh-CN/installation/1panel.md @@ -150,8 +150,11 @@ docker compose run -it --rm web php artisan xboard:install ⚠️ 重要配置说明: 1. 数据库配置 - - 数据库地址:填写 `mysql`(注意不是 localhost 或 127.0.0.1) - - 数据库端口:`3306` + - 数据库地址:根据部署方式选择以下配置 + 1. 如果数据库和 Xboard 在同一网络,一般填写 `mysql` + 2. 如果连接失败,请在 1Panel 面板中依次打开:数据库 -> 选择对应数据库 -> 连接信息 -> 容器连接,使用其中的"地址" + 3. 如果使用外部数据库,填写实际的数据库地址 + - 数据库端口:`3306`(如无特殊配置,使用默认端口) - 数据库名称:`xboard`(之前创建的数据库名) - 数据库用户:`xboard`(之前创建的用户名) - 数据库密码:填写之前保存的密码