apache / dolphinscheduler

Apache DolphinScheduler is the modern data orchestration platform. Agile to create high performance workflow with low-code
https://dolphinscheduler.apache.org/
Apache License 2.0
12.88k stars 4.63k forks source link

[Bug] [Standalone Server] Showing Connection Spring Boot-MySql : Public Key Retrieval is not allowed while trying to init the database #16313

Closed aaryan-purohit closed 4 months ago

aaryan-purohit commented 4 months ago

Search before asking

What happened

While trying to follow steps mentioned in https://github.com/apache/dolphinscheduler/blob/3.1.3-release/docs/docs/en/guide/howto/datasource-setting.md, I tried to init the database using script : bash tools/bin/upgrade-schema.sh. It showed the error - [Connection Spring Boot-MySql : Public Key Retrieval is not allowed

What you expected to happen

I expected that it would initialize the database and created all the sql tables needed so that all metadata will be stored even after dolphinscheduler server is stopped.

How to reproduce

Follow the commands mentioned in https://github.com/apache/dolphinscheduler/blob/3.1.3-release/docs/docs/en/guide/howto/datasource-setting.md for mysql and init the database.

Anything else

No response

Version

3.1.x

Are you willing to submit PR?

Code of Conduct

SbloodyS commented 4 months ago

Please provide more error logs. @aaryan-purohit

aaryan-purohit commented 4 months ago

Here are the logs after running bash tools/bin/upgrade-schema.sh script - image

xxzuo commented 4 months ago

This might be a configuration issue. You can try the JDBC settings mentioned here: https://stackoverflow.com/questions/50379839/connection-java-mysql-public-key-retrieval-is-not-allowed to see if it resolves the problem.

aaryan-purohit commented 4 months ago

Yes, this fixes the issue. But shouldn't this be mentioned in the https://github.com/apache/dolphinscheduler/blob/3.1.3-release/docs/docs/en/guide/howto/datasource-setting.md also?

SbloodyS commented 4 months ago

JDBC has a lot of parameters, and we won't document all of the third-party parameters. Please refer to the relevant documentation if necessary.

aaryan-purohit commented 4 months ago

Thanks for helping.