Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQLReader url is fixed #180

Closed
BleakStone opened this issue Nov 24, 2023 · 2 comments
Closed

MySQLReader url is fixed #180

BleakStone opened this issue Nov 24, 2023 · 2 comments

Comments

@BleakStone
Copy link

Please check the FAQ documentation before raising an issue

Describe the bug (required)
When I use MySQLReader, the url is fixed, for example
val url =
s"jdbc:mysql://${mysqlConfig.host}:${mysqlConfig.port}/${mysqlConfig.database}? useUnicode=true&characterEncoding=utf-8",
But do I want to add more mysql parameters, such as
“useSSL=false&useTimezone=true&serverTimezone=Asia/Shanghai” and so on, it should change the url parameter to a custom configurable parameter

Your Environments (required)

  • OS: uname -a
  • Commit id (e.g. a3ffc7d8)

How To Reproduce(required)

Steps to reproduce the behavior:

  1. Step 1
  2. Step 2
  3. Step 3

Expected behavior

Additional context

@BleakStone BleakStone changed the title MySQLReader url is MySQLReader url is fixed Nov 24, 2023
@BleakStone
Copy link
Author

Similarly, change the driver argument to custom

@Nicole00
Copy link
Contributor

Nicole00 commented Dec 5, 2023

Thank you for your question.
The mysql data source encapsulates the URL internally based on open parameters. If you want a more flexible use, maybe you could use the jdbc to import data and it has more complete configurations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants