You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2022/01/26 01:45:09 UTC

[dolphinscheduler-website] branch master updated: [install] Fix unfriendly and errors in the 2.x deployment documents (#652)

This is an automated email from the ASF dual-hosted git repository.

zhongjiajie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 7c14702  [install] Fix unfriendly and errors in the 2.x deployment documents (#652)
7c14702 is described below

commit 7c14702a4a663b2e2a73f4d2ffa6928453998fe4
Author: Sunny Lei <56...@users.noreply.github.com>
AuthorDate: Wed Jan 26 09:45:01 2022 +0800

    [install] Fix unfriendly and errors in the 2.x deployment documents (#652)
---
 .../user_doc/guide/installation/pseudo-cluster.md  |  6 +--
 .../user_doc/guide/installation/pseudo-cluster.md  |  6 +--
 .../user_doc/guide/installation/pseudo-cluster.md  |  4 +-
 .../user_doc/guide/installation/pseudo-cluster.md  |  4 +-
 .../user_doc/guide/installation/pseudo-cluster.md  | 46 +++++++++++----------
 .../user_doc/guide/installation/pseudo-cluster.md  |  8 ++--
 .../user_doc/guide/installation/pseudo-cluster.md  |  8 ++--
 .../user_doc/guide/installation/pseudo-cluster.md  |  6 +--
 .../user_doc/guide/installation/pseudo-cluster.md  |  6 +--
 .../user_doc/guide/installation/pseudo-cluster.md  | 48 +++++++++++-----------
 10 files changed, 73 insertions(+), 69 deletions(-)

diff --git a/docs/en-us/2.0.0/user_doc/guide/installation/pseudo-cluster.md b/docs/en-us/2.0.0/user_doc/guide/installation/pseudo-cluster.md
index b4d2f30..ea0ef40 100644
--- a/docs/en-us/2.0.0/user_doc/guide/installation/pseudo-cluster.md
+++ b/docs/en-us/2.0.0/user_doc/guide/installation/pseudo-cluster.md
@@ -36,7 +36,7 @@ sed -i '$adolphinscheduler  ALL=(ALL)  NOPASSWD: NOPASSWD: ALL' /etc/sudoers
 sed -i 's/Defaults    requirett/#Defaults    requirett/g' /etc/sudoers
 
 # Modify directory permissions and grant permissions for user you created above
-chown -R dolphinscheduler:dolphinscheduler dolphinscheduler-bin
+chown -R dolphinscheduler:dolphinscheduler apache-dolphinscheduler-*-bin
 ```
 
 > **_NOTICE:_**
@@ -85,7 +85,7 @@ mysql> flush privileges;
 
 Run the latest schema file manually in `dolphinscheduler/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_*.sql` to initialization you database. If you use MySQL, please run `dolphinscheduler/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql`, for PostgreSQL run `dolphinscheduler/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgre.sql`
 
-> **_NOTICE:_** In the latest version, the way running command `sh script/create-dolphinscheduler.sh` initialization database is broken, We have created a [issue-6597][issue] to track and fix this problem
+> **_NOTICE:_** In the 2.0.0 version, the way running command `sh script/create-dolphinscheduler.sh` initialization database is broken, We have created a [issue-6597][issue] to track and fix this problem
 
 <!--
 Modify the database configuration and initialize
@@ -152,7 +152,7 @@ registryServers="localhost:2181"
 
 ## Start DolphinScheduler
 
-Use deployment user you created above, running the following command to complete the deployment, and the server log will be stored in the logs folder
+Use **deployment user** you created above, running the following command to complete the deployment, and the server log will be stored in the logs folder
 
 ```shell
 sh install.sh
diff --git a/docs/en-us/2.0.1/user_doc/guide/installation/pseudo-cluster.md b/docs/en-us/2.0.1/user_doc/guide/installation/pseudo-cluster.md
index 3c6d5df..91ae85c 100644
--- a/docs/en-us/2.0.1/user_doc/guide/installation/pseudo-cluster.md
+++ b/docs/en-us/2.0.1/user_doc/guide/installation/pseudo-cluster.md
@@ -36,7 +36,7 @@ sed -i '$adolphinscheduler  ALL=(ALL)  NOPASSWD: NOPASSWD: ALL' /etc/sudoers
 sed -i 's/Defaults    requirett/#Defaults    requirett/g' /etc/sudoers
 
 # Modify directory permissions and grant permissions for user you created above
-chown -R dolphinscheduler:dolphinscheduler dolphinscheduler-bin
+chown -R dolphinscheduler:dolphinscheduler apache-dolphinscheduler-*-bin
 ```
 
 > **_NOTICE:_**
@@ -85,7 +85,7 @@ mysql> flush privileges;
 
 Run the latest schema file manually in `sql/sql/dolphinscheduler_*.sql` to initialization you database. If you use MySQL, please run `sql/sql/dolphinscheduler_mysql.sql`, for PostgreSQL run `sql /sql/dolphinscheduler_postgre.sql`
 
-> **_NOTICE:_** In the latest version, the way running command `sh script/create-dolphinscheduler.sh` initialization database is broken
+> **_NOTICE:_** In the 2.0.1 version, the way running command `sh script/create-dolphinscheduler.sh` initialization database is broken, We have created a [issue-6597][issue] to track and fix this problem
 
 <!--
 Modify the database configuration and initialize
@@ -152,7 +152,7 @@ registryServers="localhost:2181"
 
 ## Start DolphinScheduler
 
-Use deployment user you created above, running the following command to complete the deployment, and the server log will be stored in the logs folder
+Use **deployment user** you created above, running the following command to complete the deployment, and the server log will be stored in the logs folder
 
 ```shell
 sh install.sh
diff --git a/docs/en-us/2.0.2/user_doc/guide/installation/pseudo-cluster.md b/docs/en-us/2.0.2/user_doc/guide/installation/pseudo-cluster.md
index af4b64b..5b9a42c 100644
--- a/docs/en-us/2.0.2/user_doc/guide/installation/pseudo-cluster.md
+++ b/docs/en-us/2.0.2/user_doc/guide/installation/pseudo-cluster.md
@@ -36,7 +36,7 @@ sed -i '$adolphinscheduler  ALL=(ALL)  NOPASSWD: NOPASSWD: ALL' /etc/sudoers
 sed -i 's/Defaults    requirett/#Defaults    requirett/g' /etc/sudoers
 
 # Modify directory permissions and grant permissions for user you created above
-chown -R dolphinscheduler:dolphinscheduler dolphinscheduler-bin
+chown -R dolphinscheduler:dolphinscheduler apache-dolphinscheduler-*-bin
 ```
 
 > **_NOTICE:_**
@@ -137,7 +137,7 @@ sh script/create-dolphinscheduler.sh
 
 ## Start DolphinScheduler
 
-Use deployment user you created above, running the following command to complete the deployment, and the server log will be stored in the logs folder
+Use **deployment user** you created above, running the following command to complete the deployment, and the server log will be stored in the logs folder
 
 ```shell
 sh install.sh
diff --git a/docs/en-us/2.0.3/user_doc/guide/installation/pseudo-cluster.md b/docs/en-us/2.0.3/user_doc/guide/installation/pseudo-cluster.md
index af4b64b..5b9a42c 100644
--- a/docs/en-us/2.0.3/user_doc/guide/installation/pseudo-cluster.md
+++ b/docs/en-us/2.0.3/user_doc/guide/installation/pseudo-cluster.md
@@ -36,7 +36,7 @@ sed -i '$adolphinscheduler  ALL=(ALL)  NOPASSWD: NOPASSWD: ALL' /etc/sudoers
 sed -i 's/Defaults    requirett/#Defaults    requirett/g' /etc/sudoers
 
 # Modify directory permissions and grant permissions for user you created above
-chown -R dolphinscheduler:dolphinscheduler dolphinscheduler-bin
+chown -R dolphinscheduler:dolphinscheduler apache-dolphinscheduler-*-bin
 ```
 
 > **_NOTICE:_**
@@ -137,7 +137,7 @@ sh script/create-dolphinscheduler.sh
 
 ## Start DolphinScheduler
 
-Use deployment user you created above, running the following command to complete the deployment, and the server log will be stored in the logs folder
+Use **deployment user** you created above, running the following command to complete the deployment, and the server log will be stored in the logs folder
 
 ```shell
 sh install.sh
diff --git a/docs/en-us/dev/user_doc/guide/installation/pseudo-cluster.md b/docs/en-us/dev/user_doc/guide/installation/pseudo-cluster.md
index c5416a8..1376283 100644
--- a/docs/en-us/dev/user_doc/guide/installation/pseudo-cluster.md
+++ b/docs/en-us/dev/user_doc/guide/installation/pseudo-cluster.md
@@ -36,7 +36,7 @@ sed -i '$adolphinscheduler  ALL=(ALL)  NOPASSWD: NOPASSWD: ALL' /etc/sudoers
 sed -i 's/Defaults    requirett/#Defaults    requirett/g' /etc/sudoers
 
 # Modify directory permissions and grant permissions for user you created above
-chown -R dolphinscheduler:dolphinscheduler dolphinscheduler-bin
+chown -R dolphinscheduler:dolphinscheduler apache-dolphinscheduler-*-bin
 ```
 
 > **_NOTICE:_**
@@ -67,26 +67,6 @@ Go to the zookeeper installation directory, copy configure file `zoo_sample.cfg`
 ./bin/zkServer.sh start
 ```
 
-### Initialize the database
-
-DolphinScheduler metadata is stored in relational database. Currently, PostgreSQL and MySQL are supported. If you use MySQL, you need to manually download [mysql-connector-java driver][mysql] (8.0.16) and move it to the lib directory of DolphinScheduler. Let's take MySQL as an example for how to initialize the database
-
-```shell
-mysql -uroot -p
-
-mysql> CREATE DATABASE dolphinscheduler DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
-
-# Change {user} and {password} by requests
-mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO '{user}'@'%' IDENTIFIED BY '{password}';
-mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO '{user}'@'localhost' IDENTIFIED BY '{password}';
-
-mysql> flush privileges;
-```
-
-Run the latest schema file manually in `dolphinscheduler/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_*.sql` to initialization you database. If you use MySQL, please run `dolphinscheduler/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql`, for PostgreSQL run `dolphinscheduler/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgre.sql`
-
-> **_NOTICE:_** In the latest version, the way running command `sh script/create-dolphinscheduler.sh` initialization database is broken, We have created a [issue-6597][issue] to track and fix this problem
-
 <!--
 Modify the database configuration and initialize
 
@@ -150,9 +130,31 @@ dbname="dolphinscheduler"
 registryServers="localhost:2181"
 ```
 
+## Initialize the database
+
+DolphinScheduler metadata is stored in relational database. Currently, PostgreSQL and MySQL are supported. If you use MySQL, you need to manually download [mysql-connector-java driver][mysql] (8.0.16) and move it to the lib directory of DolphinScheduler. Let's take MySQL as an example for how to initialize the database
+
+```shell
+mysql -uroot -p
+
+mysql> CREATE DATABASE dolphinscheduler DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
+
+# Change {user} and {password} by requests
+mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO '{user}'@'%' IDENTIFIED BY '{password}';
+mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO '{user}'@'localhost' IDENTIFIED BY '{password}';
+
+mysql> flush privileges;
+```
+
+After above steps done you would create a new database for DolphinScheduler, then run shortcut Shell scripts to init database
+
+```shell
+sh script/create-dolphinscheduler.sh
+```
+
 ## Start DolphinScheduler
 
-Use deployment user you created above, running the following command to complete the deployment, and the server log will be stored in the logs folder
+Use **deployment user** you created above, running the following command to complete the deployment, and the server log will be stored in the logs folder
 
 ```shell
 sh install.sh
diff --git a/docs/zh-cn/2.0.0/user_doc/guide/installation/pseudo-cluster.md b/docs/zh-cn/2.0.0/user_doc/guide/installation/pseudo-cluster.md
index ba77012..0aac723 100644
--- a/docs/zh-cn/2.0.0/user_doc/guide/installation/pseudo-cluster.md
+++ b/docs/zh-cn/2.0.0/user_doc/guide/installation/pseudo-cluster.md
@@ -35,8 +35,8 @@ echo "dolphinscheduler" | passwd --stdin dolphinscheduler
 sed -i '$adolphinscheduler  ALL=(ALL)  NOPASSWD: NOPASSWD: ALL' /etc/sudoers
 sed -i 's/Defaults    requirett/#Defaults    requirett/g' /etc/sudoers
 
-# 修改目录权限,使得部署用户对 dolphinscheduler-bin 目录有操作权限
-chown -R dolphinscheduler:dolphinscheduler dolphinscheduler-bin
+# 修改目录权限,使得部署用户对二进制包解压后的 apache-dolphinscheduler-*-bin 目录有操作权限
+chown -R dolphinscheduler:dolphinscheduler apache-dolphinscheduler-*-bin
 ```
 
 > **_注意:_**
@@ -85,7 +85,7 @@ mysql> flush privileges;
 
 运行对应数据库的最新定义文件,位置在 `dolphinscheduler/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_*.sql` 。例如你是 MySQL ,运行 `dolphinscheduler/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql` ,是 PostgreSQL 则运行 `dolphinscheduler/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgre.sql`
 
-> **_NOTICE:_** 最新版本目前通过运行命令 `sh script/create-dolphinscheduler.sh` 初始化数据库的方式暂不可用,我们创建了一个[issue-6597][issue] 去追踪并修复这个问题。
+> **_NOTICE:_** 2.0.0 版本目前通过运行命令 `sh script/create-dolphinscheduler.sh` 初始化数据库的方式暂不可用,我们创建了一个[issue-6597][issue] 去追踪并修复这个问题。
 
 <!--
 修改数据库配置,并初始化
@@ -152,7 +152,7 @@ registryServers="localhost:2181"
 
 ## 启动 DolphinScheduler
 
-使用部署用户运行一下命令完成部署,部署后的运行日志将存放在 logs 文件夹内
+使用上面创建的**部署用户**运行以下命令完成部署,部署后的运行日志将存放在 logs 文件夹内
 
 ```shell
 sh install.sh
diff --git a/docs/zh-cn/2.0.1/user_doc/guide/installation/pseudo-cluster.md b/docs/zh-cn/2.0.1/user_doc/guide/installation/pseudo-cluster.md
index eaf26c4..494adf1 100644
--- a/docs/zh-cn/2.0.1/user_doc/guide/installation/pseudo-cluster.md
+++ b/docs/zh-cn/2.0.1/user_doc/guide/installation/pseudo-cluster.md
@@ -35,8 +35,8 @@ echo "dolphinscheduler" | passwd --stdin dolphinscheduler
 sed -i '$adolphinscheduler  ALL=(ALL)  NOPASSWD: NOPASSWD: ALL' /etc/sudoers
 sed -i 's/Defaults    requirett/#Defaults    requirett/g' /etc/sudoers
 
-# 修改目录权限,使得部署用户对 dolphinscheduler-bin 目录有操作权限
-chown -R dolphinscheduler:dolphinscheduler dolphinscheduler-bin
+# 修改目录权限,使得部署用户对二进制包解压后的 apache-dolphinscheduler-*-bin 目录有操作权限
+chown -R dolphinscheduler:dolphinscheduler apache-dolphinscheduler-*-bin
 ```
 
 > **_注意:_**
@@ -85,7 +85,7 @@ mysql> flush privileges;
 
 运行对应数据库的最新定义文件,位置在安装目录 `sql/sql/dolphinscheduler_*.sql` 。例如你是 MySQL ,运行 `sql/sql/dolphinscheduler_mysql.sql` ,是 PostgreSQL 则运行 `sql/sql/dolphinscheduler_postgre.sql`
 
-> **_NOTICE:_** 最新版本目前通过运行命令 `sh script/create-dolphinscheduler.sh`
+> **_NOTICE:_** 2.0.1 版本目前通过运行命令 `sh script/create-dolphinscheduler.sh` 初始化数据库的方式暂不可用,我们创建了一个[issue-6597][issue] 去追踪并修复这个问题。
 
 <!--
 修改数据库配置,并初始化
@@ -153,7 +153,7 @@ registryServers="localhost:2181"
 
 ## 启动 DolphinScheduler
 
-使用部署用户运行一下命令完成部署,部署后的运行日志将存放在 logs 文件夹内
+使用上面创建的**部署用户**运行以下命令完成部署,部署后的运行日志将存放在 logs 文件夹内
 
 ```shell
 sh install.sh
diff --git a/docs/zh-cn/2.0.2/user_doc/guide/installation/pseudo-cluster.md b/docs/zh-cn/2.0.2/user_doc/guide/installation/pseudo-cluster.md
index 35831c3..61de160 100644
--- a/docs/zh-cn/2.0.2/user_doc/guide/installation/pseudo-cluster.md
+++ b/docs/zh-cn/2.0.2/user_doc/guide/installation/pseudo-cluster.md
@@ -35,8 +35,8 @@ echo "dolphinscheduler" | passwd --stdin dolphinscheduler
 sed -i '$adolphinscheduler  ALL=(ALL)  NOPASSWD: NOPASSWD: ALL' /etc/sudoers
 sed -i 's/Defaults    requirett/#Defaults    requirett/g' /etc/sudoers
 
-# 修改目录权限,使得部署用户对 dolphinscheduler-bin 目录有操作权限
-chown -R dolphinscheduler:dolphinscheduler dolphinscheduler-bin
+# 修改目录权限,使得部署用户对二进制包解压后的 apache-dolphinscheduler-*-bin 目录有操作权限
+chown -R dolphinscheduler:dolphinscheduler apache-dolphinscheduler-*-bin
 ```
 
 > **_注意:_**
@@ -137,7 +137,7 @@ sh script/create-dolphinscheduler.sh
 
 ## 启动 DolphinScheduler
 
-使用部署用户运行一下命令完成部署,部署后的运行日志将存放在 logs 文件夹内
+使用上面创建的**部署用户**运行以下命令完成部署,部署后的运行日志将存放在 logs 文件夹内
 
 ```shell
 sh install.sh
diff --git a/docs/zh-cn/2.0.3/user_doc/guide/installation/pseudo-cluster.md b/docs/zh-cn/2.0.3/user_doc/guide/installation/pseudo-cluster.md
index 35831c3..61de160 100644
--- a/docs/zh-cn/2.0.3/user_doc/guide/installation/pseudo-cluster.md
+++ b/docs/zh-cn/2.0.3/user_doc/guide/installation/pseudo-cluster.md
@@ -35,8 +35,8 @@ echo "dolphinscheduler" | passwd --stdin dolphinscheduler
 sed -i '$adolphinscheduler  ALL=(ALL)  NOPASSWD: NOPASSWD: ALL' /etc/sudoers
 sed -i 's/Defaults    requirett/#Defaults    requirett/g' /etc/sudoers
 
-# 修改目录权限,使得部署用户对 dolphinscheduler-bin 目录有操作权限
-chown -R dolphinscheduler:dolphinscheduler dolphinscheduler-bin
+# 修改目录权限,使得部署用户对二进制包解压后的 apache-dolphinscheduler-*-bin 目录有操作权限
+chown -R dolphinscheduler:dolphinscheduler apache-dolphinscheduler-*-bin
 ```
 
 > **_注意:_**
@@ -137,7 +137,7 @@ sh script/create-dolphinscheduler.sh
 
 ## 启动 DolphinScheduler
 
-使用部署用户运行一下命令完成部署,部署后的运行日志将存放在 logs 文件夹内
+使用上面创建的**部署用户**运行以下命令完成部署,部署后的运行日志将存放在 logs 文件夹内
 
 ```shell
 sh install.sh
diff --git a/docs/zh-cn/dev/user_doc/guide/installation/pseudo-cluster.md b/docs/zh-cn/dev/user_doc/guide/installation/pseudo-cluster.md
index 73ffcee..e153e44 100644
--- a/docs/zh-cn/dev/user_doc/guide/installation/pseudo-cluster.md
+++ b/docs/zh-cn/dev/user_doc/guide/installation/pseudo-cluster.md
@@ -35,8 +35,8 @@ echo "dolphinscheduler" | passwd --stdin dolphinscheduler
 sed -i '$adolphinscheduler  ALL=(ALL)  NOPASSWD: NOPASSWD: ALL' /etc/sudoers
 sed -i 's/Defaults    requirett/#Defaults    requirett/g' /etc/sudoers
 
-# 修改目录权限,使得部署用户对 dolphinscheduler-bin 目录有操作权限
-chown -R dolphinscheduler:dolphinscheduler dolphinscheduler-bin
+# 修改目录权限,使得部署用户对二进制包解压后的 apache-dolphinscheduler-*-bin 目录有操作权限
+chown -R dolphinscheduler:dolphinscheduler apache-dolphinscheduler-*-bin
 ```
 
 > **_注意:_**
@@ -67,26 +67,6 @@ chmod 600 ~/.ssh/authorized_keys
 ./bin/zkServer.sh start
 ```
 
-### 初始化数据库
-
-DolphinScheduler 元数据存储在关系型数据库中,目前支持 PostgreSQL 和 MySQL,如果使用 MySQL 则需要手动下载 [mysql-connector-java 驱动][mysql] (8.0.16) 并移动到 DolphinScheduler 的 lib目录下。下面以 MySQL 为例,说明如何初始化数据库
-
-```shell
-mysql -uroot -p
-
-mysql> CREATE DATABASE dolphinscheduler DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
-
-# 修改 {user} 和 {password} 为你希望的用户名和密码
-mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO '{user}'@'%' IDENTIFIED BY '{password}';
-mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO '{user}'@'localhost' IDENTIFIED BY '{password}';
-
-mysql> flush privileges;
-```
-
-运行对应数据库的最新定义文件,位置在 `dolphinscheduler/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_*.sql` 。例如你是 MySQL ,运行 `dolphinscheduler/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql` ,是 PostgreSQL 则运行 `dolphinscheduler/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgre.sql`
-
-> **_NOTICE:_** 最新版本目前通过运行命令 `sh script/create-dolphinscheduler.sh` 初始化数据库的方式暂不可用,我们创建了一个[issue-6597][issue] 去追踪并修复这个问题。
-
 <!--
 修改数据库配置,并初始化
 
@@ -150,9 +130,31 @@ dbname="dolphinscheduler"
 registryServers="localhost:2181"
 ```
 
+## 初始化数据库
+
+DolphinScheduler 元数据存储在关系型数据库中,目前支持 PostgreSQL 和 MySQL,如果使用 MySQL 则需要手动下载 [mysql-connector-java 驱动][mysql] (8.0.16) 并移动到 DolphinScheduler 的 lib目录下。下面以 MySQL 为例,说明如何初始化数据库
+
+```shell
+mysql -uroot -p
+
+mysql> CREATE DATABASE dolphinscheduler DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
+
+# 修改 {user} 和 {password} 为你希望的用户名和密码
+mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO '{user}'@'%' IDENTIFIED BY '{password}';
+mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO '{user}'@'localhost' IDENTIFIED BY '{password}';
+
+mysql> flush privileges;
+```
+
+完成上述步骤后,您已经为 DolphinScheduler 创建一个新数据库,现在你可以通过快速的 Shell 脚本来初始化数据库
+
+```shell
+sh script/create-dolphinscheduler.sh
+```
+
 ## 启动 DolphinScheduler
 
-使用部署用户运行一下命令完成部署,部署后的运行日志将存放在 logs 文件夹内
+使用上面创建的**部署用户**运行以下命令完成部署,部署后的运行日志将存放在 logs 文件夹内
 
 ```shell
 sh install.sh