@ -8,11 +8,12 @@ We here use MySQL as an example to illustrate how to configure an external datab
which is `api-server/libs` and `alert-server/libs` and `master-server/libs` and `worker-server/libs`.
which is `api-server/libs` and `alert-server/libs` and `master-server/libs` and `worker-server/libs`.
* First of all, follow the instructions in [datasource-setting](datasource-setting.md) `Pseudo-Cluster/Cluster Initialize the Database` section to create and initialize database
* First of all, follow the instructions in [datasource-setting](datasource-setting.md) `Pseudo-Cluster/Cluster Initialize the Database` section to create and initialize database
* Set the following environment variables in your terminal or modify the `bin/env/dolphinscheduler_env.sh`with your database username and password for `{user}` and `{password}`:
* Set the following environment variables in your terminal with your database address, username and password for`{address}`,`{user}` and `{password}`:
Then, modify `./bin/env/dolphinscheduler_env.sh`, change {user} and {password} to what you set in the previous step.
Then, set the database configurations by exporting the following environment variables, change {user} and {password} to what you set in the previous step.
@ -23,10 +23,10 @@ Stop all services of dolphinscheduler according to your deployment method. If yo
### Upgrade Database
### Upgrade Database
Change configuration in `./bin/env/dolphinscheduler_env.sh` ({user} and {password} are changed to your database username and password), and then run the upgrade script.
Set the following environment variables ({user} and {password} are changed to your database username and password), and then run the upgrade script.
Using MySQL as an example, change the value if you use other databases. Please manually download the [mysql-connector-java driver jar](https://downloads.MySQL.com/archives/c-j/)
Using MySQL as an example, change the value if you use other databases. Please manually download the [mysql-connector-java driver jar](https://downloads.MySQL.com/archives/c-j/)
jar package and add it to the `./tools/libs` directory, then change `./bin/ env/dolphinscheduler_env.sh` file
jar package and add it to the `./tools/libs` directory, then export the following environment variables
IDEA 启动服务默认时区为本地时区,可以加jvm参数如`-Duser.timezone=UTC`来修改时区。 时区选择详见[List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
IDEA 启动服务默认时区为本地时区,可以加jvm参数如`-Duser.timezone=UTC`来修改时区。 时区选择详见[List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)