farmer-it-1024 commented on issue #17373:
URL:
https://github.com/apache/dolphinscheduler/issues/17373#issuecomment-3714022243
dockerfile
```
FROM dolphinscheduler.docker.scarf.sh/apache/dolphinscheduler-tools:3.2.2
COPY mysql-connector-java-8.0.16.jar /opt/dolphinscheduler/libs
```
```
docker run -d --name dolphinscheduler-tool-mysql \
-e SPRING_PROFILES_ACTIVE="mysql" \
-e DATABASE="mysql" \
-e
SPRING_DATASOURCE_URL="jdbc:mysql://127.0.0.1:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8&useSSL=false"
\
-e SPRING_DATASOURCE_USERNAME="root" \
-e SPRING_DATASOURCE_PASSWORD="aabbcc" \
-e SPRING_JACKSON_TIME_ZONE="UTC" \
--net host \
apache/dolphinscheduler-tool-mysql:3.2.2 tools/bin/upgrade-schema.sh
```
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'v130DolphinSchedulerUpgrader': Unsatisfied
dependency expressed through field 'dataSource'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dataSource' defined in class path resource
[org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]:
Bean instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw
exception; nested exception is java.lang.IllegalStateException: Cannot load
driver class: com.mysql.cj.jdbc.Driver
--
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]