You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by GitBox <gi...@apache.org> on 2022/11/14 03:38:25 UTC

[GitHub] [incubator-streampark-website] TyrantLucifer commented on a diff in pull request #156: [Improve][Docs][User-Guide] Improve the deployment document of user-g…

TyrantLucifer commented on code in PR #156:
URL: https://github.com/apache/incubator-streampark-website/pull/156#discussion_r1021048767


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/user-guide/1-deployment.md:
##########
@@ -168,40 +170,65 @@ streampark-console-service-1.2.1
 
 ```textmate
 ├── script
-│     ├── final                 // 完整的ddl建表sql
-│     ├── upgrade               // 每个版本升级部分的sql(只记录从上个版本到本次版本的sql变化)
+│     ├── schema                               // 完整的ddl建表sql
+│     ├── data                               // 完整的dml插入数据sql
+│     ├── upgrade                             // 每个版本升级部分的sql(只记录从上个版本到本次版本的sql变化)
+```
+
+执行schema文件夹中的sql来初始化表结构
+
+##### 初始化表数据
+
+在 1.2.1之前的版本安装过程中不需要手动做数据初始化,只需要设置好数据库信息即可,会自动完成建表和数据初始化等一些列操作, 1.2.1(包含)之后的版本里不在自动建表和升级,需要用户手动执行ddl进行初始化操作,ddl说明如下:
+
+```textmate
+├── script
+│     ├── schema                               // 完整的ddl建表sql
+│     ├── data                               // 完整的dml插入数据sql
+│     ├── upgrade                             // 每个版本升级部分的sql(只记录从上个版本到本次版本的sql变化)
 ```
 
+执行data文件夹中的sql来初始化表数据
+
 ##### 修改配置
 安装解包已完成,接下来准备数据相关的工作
 
 ###### 新建数据库 `streampark`
 确保在部署机可以连接的 mysql 里新建数据库 `streampark`
 
 ###### 修改连接信息
-进入到 `conf` 下,修改 `conf/application.yml`,找到 datasource 这一项,找到 mysql 的配置,修改成对应的信息即可,如下
+进入到 `conf` 下,修改 `conf/application.yml`,找到 spring 这一项,找到 profiles.active 的配置,修改成对应的信息即可,如下
+
+```yaml
+spring:
+  profiles.active: mysql #[h2,pgsql,mysql]

Review Comment:
   Got it, I will add this tips here. Thank you for your time to review.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org