You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/08/22 11:55:31 UTC

[GitHub] [dolphinscheduler] chengshiwen commented on issue #6014: [Bug][dolphinschedeler-dao] Failed to obtain JDBC Connection when start with mysql driver via docker

chengshiwen commented on issue #6014:
URL: https://github.com/apache/dolphinscheduler/issues/6014#issuecomment-903257309


   @gk0916 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 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 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: commits-unsubscribe@dolphinscheduler.apache.org

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