chengshiwen edited a comment on issue #6014:
URL:
https://github.com/apache/dolphinscheduler/issues/6014#issuecomment-903257309
@gk0916 Usually for security, the database is best created by the
administrator. For this problem, you can run docker-compose like
```yml
ds-mysql:
image: mysql:5.7
container_name: ds-mysql
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=dolphinscheduler
- MYSQL_USER=ds_user
- MYSQL_PASSWORD=dolphinscheduler
- TZ=Asia/Shanghai
command: --character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci --max-allowed-packet=128M
--default-time_zone='+8:00'
restart: unless-stopped
networks:
- ds_net
```
or just run docker
```shell
docker run -d --name ds-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -e
MYSQL_DATABASE=dolphinscheduler -e MYSQL_USER=ds_user -e
MYSQL_PASSWORD=dolphinscheduler -e TZ=Asia/Shanghai --restart unless-stopped
mysql:5.7 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
--max-allowed-packet=128M --default-time_zone='+8:00'
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]