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/02/25 05:59:23 UTC

[GitHub] [incubator-dolphinscheduler] JIANCHUJUN opened a new issue #4871: [Question] Unable to Connect to MySQL datasource

JIANCHUJUN opened a new issue #4871:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4871


   
   **Describe the question**
   Hi, I am using docker-compose to deploy Dolphinscheduler (1.3.5, official release), but I can't connect to MySQL datasource. I tried to use "docker cp" and copy "mysql-connector-java-5.1.34.jar" into /opt/dolphinscheduler/lib, but the connection still failed. Do I need to change configuration file elsewhere? 
   
   
   **Which version of DolphinScheduler:**
    -[1.3.5, Docker-Compose]
   


----------------------------------------------------------------
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.

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



[GitHub] [incubator-dolphinscheduler] chengshiwen edited a comment on issue #4871: [Question] Unable to Connect to MySQL datasource

Posted by GitBox <gi...@apache.org>.
chengshiwen edited a comment on issue #4871:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4871#issuecomment-785648559


   @JIANCHUJUN Please see #4732
   If you just want to connect to a mysql datasource, not only you need to execute `docker cp mysql-connector-java-5.1.49.jar /opt/dolphinscheduler/lib` into `api` and `worker` container, you also need to restart all containers by `docker-compose restart`.
   **Attention**: The driver `mysql-connector-java-5.1.49.jar` must be required with `>=5.1.47`
   ```
   docker cp mysql-connector-java-5.1.49.jar dolphinscheduler-api:/opt/dolphinscheduler/lib
   docker cp mysql-connector-java-5.1.49.jar dolphinscheduler-worker:/opt/dolphinscheduler/lib
   docker-compose restart
   ```


----------------------------------------------------------------
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.

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



[GitHub] [incubator-dolphinscheduler] JIANCHUJUN commented on issue #4871: [Question] Unable to Connect to MySQL datasource

Posted by GitBox <gi...@apache.org>.
JIANCHUJUN commented on issue #4871:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4871#issuecomment-785705511


   Thanks for your Help! It solves the issue.


----------------------------------------------------------------
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.

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



[GitHub] [incubator-dolphinscheduler] chengshiwen edited a comment on issue #4871: [Question] Unable to Connect to MySQL datasource

Posted by GitBox <gi...@apache.org>.
chengshiwen edited a comment on issue #4871:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4871#issuecomment-785648559


   @JIANCHUJUN Please see #4732
   If you just want to connect to a mysql datasource, not only you need to execute `docker cp mysql-connector-java-5.1.49.jar /opt/dolphinscheduler/lib` into `api`, `master` and `worker` container, you also need to restart all containers by `docker-compose restart`.
   **Attention**: The driver `mysql-connector-java-5.1.49.jar` must be required with `>=5.1.47`


----------------------------------------------------------------
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.

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



[GitHub] [incubator-dolphinscheduler] JIANCHUJUN closed issue #4871: [Question] Unable to Connect to MySQL datasource

Posted by GitBox <gi...@apache.org>.
JIANCHUJUN closed issue #4871:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4871


   


----------------------------------------------------------------
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.

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



[GitHub] [incubator-dolphinscheduler] chengshiwen commented on issue #4871: [Question] Unable to Connect to MySQL datasource

Posted by GitBox <gi...@apache.org>.
chengshiwen commented on issue #4871:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4871#issuecomment-785648559


   @JIANCHUJUN Please see #4732


----------------------------------------------------------------
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.

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



[GitHub] [incubator-dolphinscheduler] chengshiwen edited a comment on issue #4871: [Question] Unable to Connect to MySQL datasource

Posted by GitBox <gi...@apache.org>.
chengshiwen edited a comment on issue #4871:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4871#issuecomment-785648559


   @JIANCHUJUN Please see #4732
   If you just want to connect to a mysql datasource, not only you need to execute `docker cp mysql-connector-java-5.1.49.jar /opt/dolphinscheduler/lib` into `api`, `master` and `worker` container, you also need to restart all containers by `docker-compose restart`


----------------------------------------------------------------
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.

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